Class AmqpWSTransportFactory
- java.lang.Object
-
- org.apache.activemq.transport.TransportFactory
-
- org.apache.activemq.transport.amqp.AmqpWSTransportFactory
-
- All Implemented Interfaces:
BrokerServiceAware
public class AmqpWSTransportFactory extends TransportFactory implements BrokerServiceAware
Factory for creating WebSocket aware AMQP Transports.
-
-
Constructor Summary
Constructors Constructor Description AmqpWSTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportcompositeConfigure(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 TransportcreateInactivityMonitor(AmqpTransportFilter transport, WireFormat format)protected TransportcreateTransport(URI location, WireFormat wireFormat)Factory method to create a new transportTransportServerdoBind(URI location)protected StringgetDefaultWireFormatType()voidsetBrokerService(BrokerService brokerService)-
Methods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getOption, registerTransportFactory, serverConfigure
-
-
-
-
Method Detail
-
getDefaultWireFormatType
protected String getDefaultWireFormatType()
- Overrides:
getDefaultWireFormatTypein classTransportFactory
-
doBind
public TransportServer doBind(URI location) throws IOException
- Specified by:
doBindin classTransportFactory- Throws:
IOException
-
compositeConfigure
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
Description copied from class:TransportFactorySimilar 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:
compositeConfigurein classTransportFactory- Returns:
-
createTransport
protected Transport createTransport(URI location, WireFormat wireFormat) throws MalformedURLException, UnknownHostException, IOException
Factory method to create a new transport- Overrides:
createTransportin classTransportFactory- Throws:
IOExceptionUnknownHostExceptionMalformedURLException
-
setBrokerService
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
createInactivityMonitor
protected Transport createInactivityMonitor(AmqpTransportFilter transport, WireFormat format)
-
-