activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r651320 - in /activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https: HttpsClientTransport.java HttpsTransportFactory.java
Date Thu, 24 Apr 2008 17:42:52 GMT
Author: chirino
Date: Thu Apr 24 10:42:37 2008
New Revision: 651320

URL: http://svn.apache.org/viewvc?rev=651320&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1098
Use of https transport throws ClassCastException

Added:
    activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
  (with props)
Modified:
    activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsTransportFactory.java

Added: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java?rev=651320&view=auto
==============================================================================
--- activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
(added)
+++ activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
Thu Apr 24 10:42:37 2008
@@ -0,0 +1,34 @@
+/**
+*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.activemq.transport.https;
+
+import java.net.URI;
+
+import org.apache.activemq.transport.http.HttpClientTransport;
+import org.apache.activemq.transport.util.TextWireFormat;
+
+/**
+ * @author john.silva
+ */
+
+public class HttpsClientTransport extends HttpClientTransport {
+  
+  public HttpsClientTransport(TextWireFormat wireFormat, URI remoteUrl) {
+    super(wireFormat, remoteUrl);
+  }
+}

Propchange: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsClientTransport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsTransportFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsTransportFactory.java?rev=651320&r1=651319&r2=651320&view=diff
==============================================================================
--- activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsTransportFactory.java
(original)
+++ activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/https/HttpsTransportFactory.java
Thu Apr 24 10:42:37 2008
@@ -37,7 +37,7 @@
     }
 
     protected Transport createTransport(URI location, WireFormat wf) throws MalformedURLException
{
-        return new HttpsTransport(asTextWireFormat(wf), location);
+        return new HttpsClientTransport(asTextWireFormat(wf), location);
     }
 
 }



Mime
View raw message