org.fusesource.hawtdispatch.transport
Class SslTransportServer
java.lang.Object
org.fusesource.hawtdispatch.transport.TcpTransportServer
org.fusesource.hawtdispatch.transport.SslTransportServer
- All Implemented Interfaces:
- TransportServer
public class SslTransportServer
- extends TcpTransportServer
- Author:
- Hiram Chirino
| Methods inherited from class org.fusesource.hawtdispatch.transport.TcpTransportServer |
getBacklog, getBoundAddress, getConnectAddress, getDispatchQueue, getReceive_buffer_size, getSocketAddress, handleSocket, resolveHostName, resume, setBacklog, setDispatchQueue, setReceive_buffer_size, setTransportServerListener, start, stop, stop, suspend, toString |
keyManagers
protected KeyManager[] keyManagers
protocol
protected String protocol
sslContext
protected SSLContext sslContext
blockingExecutor
protected Executor blockingExecutor
SslTransportServer
public SslTransportServer(URI location)
throws UnknownHostException
- Throws:
UnknownHostException
createTransportServer
public static SslTransportServer createTransportServer(URI uri)
throws Exception
- Throws:
Exception
setKeyManagers
public void setKeyManagers(KeyManager[] keyManagers)
setTrustManagers
public void setTrustManagers(TrustManager[] trustManagers)
start
public void start(Runnable onCompleted)
throws Exception
- Description copied from interface:
TransportServer
- Starts the service. Executes the onComplete runnable once the service has fully started up.
- Specified by:
start in interface TransportServer- Overrides:
start in class TcpTransportServer
- Parameters:
onCompleted - my be set to null if not interested in a callback.
- Throws:
Exception
createTransport
protected TcpTransport createTransport()
- Overrides:
createTransport in class TcpTransportServer
protocol
public SslTransportServer protocol(String value)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
getSSLContext
public SSLContext getSSLContext()
setSSLContext
public void setSSLContext(SSLContext sslContext)
getBlockingExecutor
public Executor getBlockingExecutor()
setBlockingExecutor
public void setBlockingExecutor(Executor blockingExecutor)
Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.