org.apache.activemq.transport.nio
Class NIOSSLTransportServer
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
org.apache.activemq.transport.TransportServerThreadSupport
org.apache.activemq.transport.tcp.TcpTransportServer
org.apache.activemq.transport.nio.NIOSSLTransportServer
- All Implemented Interfaces:
- Runnable, Service, TransportServer, ServiceListener
public class NIOSSLTransportServer
- extends TcpTransportServer
| Fields inherited from class org.apache.activemq.transport.tcp.TcpTransportServer |
backlog, connectionTimeout, currentTransportCount, dynamicManagement, logWriterName, maximumConnections, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, wireFormatFactory |
|
Method Summary |
protected Transport |
createTransport(Socket socket,
WireFormat format)
Allow derived classes to override the Transport implementation that this transport server creates. |
boolean |
isNeedClientAuth()
|
boolean |
isSslServer()
For TransportServers that provide SSL connections to their connected peers they should
return true here if and only if they populate the ConnectionInfo command presented to
the Broker with the peers certificate chain so that the broker knows it can use that
information to authenticate the connected peer. |
boolean |
isWantClientAuth()
|
void |
setNeedClientAuth(boolean value)
|
void |
setWantClientAuth(boolean value)
|
| Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportServer |
bind, doStart, doStop, getBacklog, getConnectionTimeout, getLogWriterName, getMaximumConnections, getMaxInactivityDuration, getMaxInactivityDurationInitalDelay, getMinmumWireFormatVersion, getSocketAddress, getSocketBufferSize, getSoTimeout, getWireFormatFactory, handleSocket, isDynamicManagement, isStartLogging, isTrace, isUseQueueForAccept, resolveHostName, run, setBacklog, setBrokerInfo, setConnectionTimeout, setDynamicManagement, setLogWriterName, setMaximumConnections, setMaxInactivityDuration, setMaxInactivityDurationInitalDelay, setMinmumWireFormatVersion, setSocketBufferSize, setSoTimeout, setStartLogging, setTrace, setUseQueueForAccept, setWireFormatFactory, started, stopped, toString |
NIOSSLTransportServer
public NIOSSLTransportServer(SSLContext context,
TcpTransportFactory transportFactory,
URI location,
ServerSocketFactory serverSocketFactory)
throws IOException,
URISyntaxException
- Throws:
IOException
URISyntaxException
createTransport
protected Transport createTransport(Socket socket,
WireFormat format)
throws IOException
- Description copied from class:
TcpTransportServer
- Allow derived classes to override the Transport implementation that this transport server creates.
- Overrides:
createTransport in class TcpTransportServer
- Returns:
-
- Throws:
IOException
isSslServer
public boolean isSslServer()
- Description copied from interface:
TransportServer
- For TransportServers that provide SSL connections to their connected peers they should
return true here if and only if they populate the ConnectionInfo command presented to
the Broker with the peers certificate chain so that the broker knows it can use that
information to authenticate the connected peer.
- Specified by:
isSslServer in interface TransportServer- Overrides:
isSslServer in class TcpTransportServer
- Returns:
- true if this transport server provides SSL level security over its
connections.
isNeedClientAuth
public boolean isNeedClientAuth()
setNeedClientAuth
public void setNeedClientAuth(boolean value)
isWantClientAuth
public boolean isWantClientAuth()
setWantClientAuth
public void setWantClientAuth(boolean value)
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.