Home » activemq-parent-5.3.1-source-release » org.apache » activemq » transport » tcp » [javadoc | source]
org.apache.activemq.transport.tcp
public class: SslTransportServer [javadoc | source]
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.tcp.SslTransportServer

All Implemented Interfaces:
    ServiceListener, Runnable, TransportServer, Service

An SSL TransportServer. Allows for client certificate authentication (refer to setNeedClientAuth for details). NOTE: Client certificate authentication is disabled by default.
Fields inherited from org.apache.activemq.transport.tcp.TcpTransportServer:
serverSocket,  backlog,  wireFormatFactory,  transportFactory,  maxInactivityDuration,  maxInactivityDurationInitalDelay,  minmumWireFormatVersion,  useQueueForAccept,  trace,  soTimeout,  socketBufferSize,  connectionTimeout,  logWriterName,  dynamicManagement,  startLogging,  transportOptions,  serverSocketFactory,  socketQueue,  socketHandlerThread,  maximumConnections,  currentTransportCount
Constructor:
 public SslTransportServer(SslTransportFactory transportFactory,
    URI location,
    SSLServerSocketFactory serverSocketFactory) throws IOException, URISyntaxException 
    Creates a ssl transport server for the specified url using the provided serverSocketFactory
    Parameters:
    transportFactory - The factory used to create transports when connections arrive.
    location - The location of the broker to bind to.
    serverSocketFactory - The factory used to create this server.
    Throws:
    IOException - passed up from TcpTransportFactory.
    URISyntaxException - passed up from TcpTransportFactory.
Method from org.apache.activemq.transport.tcp.SslTransportServer Summary:
bind,   createTransport,   getNeedClientAuth,   getWantClientAuth,   setNeedClientAuth,   setWantClientAuth
Methods from org.apache.activemq.transport.tcp.TcpTransportServer:
bind,   createTransport,   doStart,   doStop,   getBacklog,   getConnectionTimeout,   getLogWriterName,   getMaxInactivityDuration,   getMaxInactivityDurationInitalDelay,   getMaximumConnections,   getMinmumWireFormatVersion,   getSoTimeout,   getSocketAddress,   getSocketBufferSize,   getWireFormatFactory,   handleSocket,   isDynamicManagement,   isStartLogging,   isTrace,   isUseQueueForAccept,   resolveHostName,   run,   setBacklog,   setBrokerInfo,   setConnectionTimeout,   setDynamicManagement,   setLogWriterName,   setMaxInactivityDuration,   setMaxInactivityDurationInitalDelay,   setMaximumConnections,   setMinmumWireFormatVersion,   setSoTimeout,   setSocketBufferSize,   setStartLogging,   setTrace,   setTransportOption,   setUseQueueForAccept,   setWireFormatFactory,   started,   stopped,   toString
Methods from org.apache.activemq.transport.TransportServerThreadSupport:
doStart,   doStop,   getStackSize,   isDaemon,   isJoinOnStop,   setDaemon,   setJoinOnStop,   setStackSize
Methods from org.apache.activemq.transport.TransportServerSupport:
getAcceptListener,   getBindLocation,   getConnectURI,   onAcceptError,   setAcceptListener,   setBindLocation,   setConnectURI
Methods from org.apache.activemq.util.ServiceSupport:
addServiceListener,   dispose,   doStart,   doStop,   isStarted,   isStopped,   isStopping,   removeServiceListener,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.transport.tcp.SslTransportServer Detail:
 public  void bind() throws IOException 
    Binds this socket to the previously specified URI. Overridden to allow for proper handling of needClientAuth.
 protected Transport createTransport(Socket socket,
    WireFormat format) throws IOException 
    Used to create Transports for this server. Overridden to allow the use of SslTransports (instead of TcpTransports).
 public boolean getNeedClientAuth() 
    Returns whether client authentication should be required.
 public boolean getWantClientAuth() 
    Returns whether client authentication should be requested.
 public  void setNeedClientAuth(boolean needAuth) 
    Sets whether client authentication should be required Must be called before #bind() Note: Calling this method clears the wantClientAuth flag in the underlying implementation.
 public  void setWantClientAuth(boolean wantAuth) 
    Sets whether client authentication should be requested. Must be called before #bind() Note: Calling this method clears the needClientAuth flag in the underlying implementation.