public class HttpsServerHelper extends HttpServerHelper
| Parameter name | Value type | Default value | Description |
|---|---|---|---|
| sslContextFactory | String | org.restlet.ext.ssl.DefaultSslContextFactory | Let you specify a SslContextFactory qualified class name as a
parameter, or an instance as an attribute for a more complete and flexible
SSL context setting. |
DefaultSslContextFactory class.clientSide, controller, inboundMessages, outboundMessages| Constructor and Description |
|---|
HttpsServerHelper(Server server)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connection<Server> |
createConnection(SocketChannel socketChannel,
ConnectionController controller,
InetSocketAddress socketAddress)
Creates a connection associated to the given socket.
|
InboundWay |
createInboundWay(Connection<Server> connection,
int bufferSize)
Creates an inbound way for the given connection.
|
OutboundWay |
createOutboundWay(Connection<Server> connection,
int bufferSize)
Creates an outbound way for the given connection.
|
protected Request |
createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Creates a new request.
|
protected SSLContext |
getSslContext()
Returns the SSL context.
|
protected void |
setSslContext(SSLContext sslContext)
Sets the SSL context.
|
void |
start()
Start callback.
|
canHandlecreateController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, stopaddOutboundMessage, checkin, checkout, configure, createConnectionPool, doFinishStop, doGracefulStop, getConnectionPool, getConnections, getInitialConnections, getMaxConnectionsPerHost, getMaxTotalConnections, getSocketLingerTimeMs, getSocketReceiveBufferSize, getSocketSendBufferSize, getSocketTrafficClass, isPersistingConnections, isPipeliningConnections, isPooledConnection, isSocketKeepAlive, isSocketNoDelay, isSocketOobInline, isSocketReuseAddresscontrol, createControllerService, createRequest, createWorkerService, execute, getControllerSleepTimeMs, getInboundBufferSize, getInboundMessages, getLowThreads, getMaxIoIdleTimeMs, getMaxQueued, getMaxThreadIdleTimeMs, getMaxThreads, getMinThreads, getOutboundBufferSize, getOutboundMessages, getRequest, getThrottleTimeMs, getTraceStream, getTransport, getWorkerService, handleInbound, handleOutbound, hasWorkerThreads, isClientSide, isDirectBuffers, isServerSide, isTracing, isWorkerServiceOverloaded, onInboundError, onOutboundError, traceWorkerServicegetConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic HttpsServerHelper(Server server)
server - The server to help.protected Connection<Server> createConnection(SocketChannel socketChannel, ConnectionController controller, InetSocketAddress socketAddress) throws IOException
ConnectionHelpercreateConnection in class ServerConnectionHelpersocketChannel - The underlying NIO socket channel.controller - The underlying IO controller.socketAddress - The associated IP address.IOExceptionpublic InboundWay createInboundWay(Connection<Server> connection, int bufferSize)
ConnectionHelpercreateInboundWay in class HttpServerHelperconnection - The parent connection.bufferSize - The byte buffer size.public OutboundWay createOutboundWay(Connection<Server> connection, int bufferSize)
ConnectionHelpercreateOutboundWay in class HttpServerHelperconnection - The parent connection.bufferSize - The byte buffer size.protected Request createRequest(Connection<Server> connection, String methodName, String resourceUri, String protocol)
ServerConnectionHelpercreateRequest in class HttpServerHelperconnection - The associated connection.methodName - The method name.resourceUri - The target resource URI.protocol - The protocol name and version.protected SSLContext getSslContext()
protected void setSslContext(SSLContext sslContext)
sslContext - The SSL context.public void start()
throws Exception
RestletHelperstart in class ServerConnectionHelperExceptionCopyright © 2005–2015. All rights reserved.