public class SslTransportServer extends TcpTransportServer
backlog, connectionTimeout, currentTransportCount, dynamicManagement, logWriterName, maximumConnections, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, wireFormatFactorytransportOptions| Constructor and Description |
|---|
SslTransportServer(SslTransportFactory transportFactory,
java.net.URI location,
javax.net.ssl.SSLServerSocketFactory serverSocketFactory)
Creates a ssl transport server for the specified url using the provided
serverSocketFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Binds this socket to the previously specified URI.
|
protected Transport |
createTransport(java.net.Socket socket,
WireFormat format)
Used to create Transports for this server.
|
boolean |
getNeedClientAuth()
Returns whether client authentication should be required.
|
boolean |
getWantClientAuth()
Returns whether client authentication should be requested.
|
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. |
void |
setWantClientAuth(boolean wantAuth)
Sets whether client authentication should be requested.
|
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, toStringgetStackSize, isDaemon, isJoinOnStop, setDaemon, setJoinOnStop, setStackSizegetAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOptionaddServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stoppublic SslTransportServer(SslTransportFactory transportFactory, java.net.URI location, javax.net.ssl.SSLServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.URISyntaxException
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.java.io.IOException - passed up from TcpTransportFactory.java.net.URISyntaxException - passed up from TcpTransportFactory.public void setNeedClientAuth(boolean needAuth)
bind()
Note: Calling this method clears the wantClientAuth flag
in the underlying implementation.public boolean getNeedClientAuth()
public boolean getWantClientAuth()
public void setWantClientAuth(boolean wantAuth)
bind()
Note: Calling this method clears the needClientAuth flag
in the underlying implementation.public void bind() throws java.io.IOException
bind in class TcpTransportServerjava.io.IOException - passed up from TcpTransportServer.protected Transport createTransport(java.net.Socket socket, WireFormat format) throws java.io.IOException
createTransport in class TcpTransportServersocket - The incoming socket that will be wrapped into the new Transport.format - The WireFormat being used.java.io.IOExceptionCopyright © 2005-2012. All Rights Reserved.