Class HttpTransportFactory
- java.lang.Object
-
- org.apache.activemq.transport.TransportFactory
-
- org.apache.activemq.transport.http.HttpTransportFactory
-
- Direct Known Subclasses:
HttpsTransportFactory
public class HttpTransportFactory extends TransportFactory
-
-
Constructor Summary
Constructors Constructor Description HttpTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TextWireFormat
asTextWireFormat(WireFormat wireFormat)
Transport
compositeConfigure(Transport transport, WireFormat format, Map options)
Similar to configure(...) but this avoid adding in the MutexTransport and ResponseCorrelator transport layers so that the resulting transport can more efficiently be used as part of a composite transport.protected Transport
createTransport(URI location, WireFormat wf)
Factory method to create a new transportTransportServer
doBind(URI location)
protected String
getDefaultWireFormatType()
Transport
serverConfigure(Transport transport, WireFormat format, HashMap options)
Fully configures and adds all need transport filters so that the transport can be used by the ActiveMQ message broker.-
Methods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactory
-
-
-
-
Method Detail
-
doBind
public TransportServer doBind(URI location) throws IOException
- Specified by:
doBind
in classTransportFactory
- Throws:
IOException
-
asTextWireFormat
protected TextWireFormat asTextWireFormat(WireFormat wireFormat)
-
getDefaultWireFormatType
protected String getDefaultWireFormatType()
- Overrides:
getDefaultWireFormatType
in classTransportFactory
-
createTransport
protected Transport createTransport(URI location, WireFormat wf) throws IOException
Description copied from class:TransportFactory
Factory method to create a new transport- Overrides:
createTransport
in classTransportFactory
- Throws:
IOException
UnknownHostException
-
serverConfigure
public Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
Description copied from class:TransportFactory
Fully configures and adds all need transport filters so that the transport can be used by the ActiveMQ message broker. The main difference between this and the configure() method is that the broker does not issue requests to the client so the ResponseCorrelator is not needed.- Overrides:
serverConfigure
in classTransportFactory
- Returns:
- Throws:
Exception
-
compositeConfigure
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
Description copied from class:TransportFactory
Similar to configure(...) but this avoid adding in the MutexTransport and ResponseCorrelator transport layers so that the resulting transport can more efficiently be used as part of a composite transport.- Overrides:
compositeConfigure
in classTransportFactory
- Returns:
-
-