mirror of https://github.com/apache/activemq.git
Rolled back HttpTransportFactory to fix compile issue
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@580495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7bd8fb6754
commit
19f9722445
|
@ -22,7 +22,7 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.apache.activemq.transport.Transport;
|
import org.apache.activemq.transport.Transport;
|
||||||
import org.apache.activemq.transport.TransportFactory;
|
import org.apache.activemq.transport.TransportFactory;
|
||||||
import org.apache.activemq.transport.TransportLoggerFactory;
|
import org.apache.activemq.transport.TransportLogger;
|
||||||
import org.apache.activemq.transport.TransportServer;
|
import org.apache.activemq.transport.TransportServer;
|
||||||
import org.apache.activemq.transport.util.TextWireFormat;
|
import org.apache.activemq.transport.util.TextWireFormat;
|
||||||
import org.apache.activemq.transport.xstream.XStreamWireFormat;
|
import org.apache.activemq.transport.xstream.XStreamWireFormat;
|
||||||
|
@ -59,14 +59,10 @@ public class HttpTransportFactory extends TransportFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Transport compositeConfigure(Transport transport, WireFormat format, Map options) {
|
public Transport compositeConfigure(Transport transport, WireFormat format, Map options) {
|
||||||
HttpClientTransport httpTransport = (HttpClientTransport) super.compositeConfigure(transport, format, options);
|
HttpClientTransport httpTransport = (HttpClientTransport)super.compositeConfigure(transport, format, options);
|
||||||
transport = httpTransport;
|
transport = httpTransport;
|
||||||
if( httpTransport.isTrace() ) {
|
if (httpTransport.isTrace()) {
|
||||||
try {
|
transport = new TransportLogger(httpTransport);
|
||||||
transport = TransportLoggerFactory.getInstance().createTransportLogger(transport);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
LOG.error("Could not create TransportLogger object for: " + TransportLoggerFactory.defaultLogWriterName + ", reason: " + e, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return transport;
|
return transport;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue