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
-
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 SocketFactoryprotected SocketFactorycreateSocketFactory(SslContext sslContext) Overriding to derive the SSL socket factory from the given SslContext, falling back to the JVM default when none is supplied.protected TcpTransportcreateTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) Overriding to use SslTransports.protected TcpTransportServercreateTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory) Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.protected TcpTransportServercreateTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory, SslContext sslContext) Overriding to create an NIO SSL transport server that uses the given SslContext for accepted connections.createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) Methods inherited from class NIOTransportFactory
createServerSocketFactory, createTransportMethods inherited from class TcpTransportFactory
createInactivityMonitor, createServerSocketFactory, createTransport, createTransport, doBind, doBind, doCompositeConnect, doConnect, isUseInactivityMonitor, toSSLContextMethods inherited from class TransportFactory
bind, compositeConnect, compositeConnect, compositeConnect, configure, connect, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, doConnectInternal, findTransportFactory, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigure
-
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- Parameters:
location-serverSocketFactory-- Returns:
- a new TcpTransportServer instance.
- Throws:
IOExceptionURISyntaxException
-
createTcpTransportServer
protected TcpTransportServer createTcpTransportServer(URI location, ServerSocketFactory serverSocketFactory, SslContext sslContext) throws IOException, URISyntaxException Overriding to create an NIO SSL transport server that uses the given SslContext for accepted connections.- Overrides:
createTcpTransportServerin classTcpTransportFactory- Parameters:
sslContext- the SslContext to use, or null for the JVM default.- Throws:
IOExceptionURISyntaxException
-
compositeConfigure
Overriding to allow for proper configuration through reflection but delegate to get common configuration- Overrides:
compositeConfigurein classTcpTransportFactory- Parameters:
transport-format-options-- Returns:
-
createSocketFactory
Overriding to derive the SSL socket factory from the given SslContext, falling back to the JVM default when none is supplied.- Overrides:
createSocketFactoryin classTcpTransportFactory- Parameters:
sslContext- the SslContext to use, or null for the JVM default.- Throws:
IOException
-
createTcpTransport
protected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException Overriding to use SslTransports.- Overrides:
createTcpTransportin classNIOTransportFactory- Parameters:
wf-socketFactory-location-localLocation-- Returns:
- a new TcpTransport instance connected to the given location.
- Throws:
IOExceptionUnknownHostException
-
createTransport
public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException - Overrides:
createTransportin classTcpTransportFactory- Throws:
IOException
-
createSocketFactory
- Overrides:
createSocketFactoryin classNIOTransportFactory- Throws:
IOException
-