Class NettyWsTransportFactory
- java.lang.Object
-
- org.apache.qpid.jms.transports.TransportFactory
-
- org.apache.qpid.jms.transports.netty.NettyWsTransportFactory
-
- Direct Known Subclasses:
NettyWssTransportFactory
public class NettyWsTransportFactory extends TransportFactory
Factory for creating the Netty based WebSocket Transport.
-
-
Constructor Summary
Constructors Constructor Description NettyWsTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransportOptionsapplyTransportConfiguration(TransportOptions transportOptions, java.util.Map<java.lang.String,java.lang.String> transportURIOptions)Apply URI options to a freshly createdTransportOptionsinstance which will be used when the actualTransportis created.protected NettyTcpTransportdoCreateTransport(java.net.URI remoteURI, TransportOptions transportOptions)Create the actual Transport instance for this factory using the provided URI and TransportOptions instances.java.lang.StringgetName()-
Methods inherited from class org.apache.qpid.jms.transports.TransportFactory
create, createTransport, doCreateTransportOptions, findTransportFactory, isSecure
-
-
-
-
Method Detail
-
doCreateTransport
protected NettyTcpTransport doCreateTransport(java.net.URI remoteURI, TransportOptions transportOptions) throws java.lang.Exception
Description copied from class:TransportFactoryCreate the actual Transport instance for this factory using the provided URI and TransportOptions instances.- Specified by:
doCreateTransportin classTransportFactory- Parameters:
remoteURI- The URI used to connect to a remote Peer.transportOptions- The TransportOptions used to configure the new Transport.- Returns:
- a newly created and configured Transport instance.
- Throws:
java.lang.Exception- if an error occurs while creating the Transport instance.
-
getName
public java.lang.String getName()
- Specified by:
getNamein classTransportFactory- Returns:
- the name of this Transport.
-
applyTransportConfiguration
protected TransportOptions applyTransportConfiguration(TransportOptions transportOptions, java.util.Map<java.lang.String,java.lang.String> transportURIOptions)
Description copied from class:TransportFactoryApply URI options to a freshly createdTransportOptionsinstance which will be used when the actualTransportis created.- Overrides:
applyTransportConfigurationin classTransportFactory- Parameters:
transportOptions- TheTransportOptionsinstance to configure.transportURIOptions- The URI options to apply to the givenTransportOptions.- Returns:
-
-