Class AutoSslTransportFactory
- java.lang.Object
-
- org.apache.activemq.transport.TransportFactory
-
- org.apache.activemq.transport.tcp.TcpTransportFactory
-
- org.apache.activemq.transport.tcp.SslTransportFactory
-
- org.apache.activemq.transport.auto.AutoSslTransportFactory
-
- All Implemented Interfaces:
BrokerServiceAware
public class AutoSslTransportFactory extends SslTransportFactory implements BrokerServiceAware
-
-
Field Summary
Fields Modifier and Type Field Description protected BrokerService
brokerService
-
Constructor Summary
Constructors Constructor Description AutoSslTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AutoSslTransportServer
createAutoSslTransportServer(URI location, SSLServerSocketFactory serverSocketFactory)
Allows subclasses of SslTransportFactory to create custom instances of SslTransportServer.TransportServer
doBind(URI location)
Overriding to use SslTransportServer and allow for proper reflection.void
setBrokerService(BrokerService brokerService)
-
Methods inherited from class org.apache.activemq.transport.tcp.SslTransportFactory
compositeConfigure, createServerSocketFactory, createSocketFactory, createSslTransportServer, createTransport, createTransport
-
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory
createInactivityMonitor, createTcpTransport, createTcpTransportServer, createTransport, 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
-
brokerService
protected BrokerService brokerService
-
-
Method Detail
-
setBrokerService
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerService
in interfaceBrokerServiceAware
-
doBind
public TransportServer doBind(URI location) throws IOException
Overriding to use SslTransportServer and allow for proper reflection.- Overrides:
doBind
in classSslTransportFactory
- Throws:
IOException
-
createAutoSslTransportServer
protected AutoSslTransportServer createAutoSslTransportServer(URI location, SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException
Allows subclasses of SslTransportFactory to create custom instances of SslTransportServer.- Parameters:
location
-serverSocketFactory
-- Returns:
- Throws:
IOException
URISyntaxException
-
-