Class NIOSSLTransportFactory
java.lang.Object
org.apache.activemq.transport.TransportFactory
org.apache.activemq.transport.tcp.TcpTransportFactory
org.apache.activemq.transport.nio.NIOTransportFactory
org.apache.activemq.transport.nio.NIOSSLTransportFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompositeConfigure(Transport transport, WireFormat format, Map options) Overriding to allow for proper configuration through reflection but delegate to get common configurationprotected SocketFactoryCreates a new SSL SocketFactory.protected TcpTransportServercreateTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.protected TransportcreateTransport(URI location, WireFormat wf) Overriding to use SslTransports.createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) Methods inherited from class org.apache.activemq.transport.nio.NIOTransportFactory
createServerSocketFactory, createTcpTransport, createTransportMethods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
createInactivityMonitor, isUseInactivityMonitorMethods inherited from class org.apache.activemq.transport.TransportFactory
bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, findTransportFactory, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigure
-
Field Details
-
context
-
-
Constructor Details
-
NIOSSLTransportFactory
public NIOSSLTransportFactory()
-
-
Method Details
-
createTcpTransportServer
protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException Description copied from class:TcpTransportFactoryAllows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.- Overrides:
createTcpTransportServerin classNIOTransportFactory- Returns:
- a new TcpTransportServer instance.
- Throws:
IOExceptionURISyntaxException
-
doBind
- Overrides:
doBindin classTcpTransportFactory- Throws:
IOException
-
compositeConfigure
Overriding to allow for proper configuration through reflection but delegate to get common configuration- Overrides:
compositeConfigurein classTcpTransportFactory- Returns:
-
createTransport
protected Transport createTransport(URI location, WireFormat wf) throws UnknownHostException, IOException Overriding to use SslTransports.- Overrides:
createTransportin classTcpTransportFactory- Throws:
UnknownHostExceptionIOException
-
createTransport
public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException - Overrides:
createTransportin classTcpTransportFactory- Throws:
IOException
-
createSocketFactory
Creates a new SSL SocketFactory. The given factory will use user-provided key and trust managers (if the user provided them).- Overrides:
createSocketFactoryin classNIOTransportFactory- Returns:
- Newly created (Ssl)SocketFactory.
- Throws:
IOException
-