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
-
- Direct Known Subclasses:
AutoNioSslTransportFactory
public class NIOSSLTransportFactory extends NIOTransportFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected SSLContextcontext
-
Constructor Summary
Constructors Constructor Description NIOSSLTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportcompositeConfigure(Transport transport, WireFormat format, Map options)Overriding to allow for proper configuration through reflection but delegate to get common configurationprotected SocketFactorycreateSocketFactory()Creates 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.TcpTransportcreateTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer)TransportServerdoBind(URI location)-
Methods inherited from class org.apache.activemq.transport.nio.NIOTransportFactory
createServerSocketFactory, createTcpTransport, createTransport
-
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
createInactivityMonitor, isUseInactivityMonitor
-
Methods 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 Detail
-
context
protected SSLContext context
-
-
Method Detail
-
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
public TransportServer doBind(URI location) throws IOException
- Overrides:
doBindin classTcpTransportFactory- Throws:
IOException
-
compositeConfigure
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
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
protected SocketFactory createSocketFactory() throws IOException
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
-
-