public class HttpsServerHelper extends HttpServerHelper
Parameter name | Value type | Default value | Description |
---|---|---|---|
sslContextFactory | String | org.restlet.engine.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.
|
canHandle
createController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, stop
addOutboundMessage, checkin, checkout, configure, createConnectionPool, doFinishStop, doGracefulStop, getConnectionPool, getConnections, getInitialConnections, getMaxConnectionsPerHost, getMaxTotalConnections, getSocketLingerTimeMs, getSocketReceiveBufferSize, getSocketSendBufferSize, getSocketTrafficClass, isPersistingConnections, isPipeliningConnections, isPooledConnection, isSocketKeepAlive, isSocketNoDelay, isSocketOobInline, isSocketReuseAddress
control, 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, traceWorkerService
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public HttpsServerHelper(Server server)
server
- The server to help.public org.restlet.ext.nio.internal.connection.Connection<Server> createConnection(SocketChannel socketChannel, org.restlet.ext.nio.internal.controller.ConnectionController controller, InetSocketAddress socketAddress) throws IOException
ConnectionHelper
createConnection
in class ServerConnectionHelper
socketChannel
- The underlying NIO socket channel.controller
- The underlying IO controller.socketAddress
- The associated IP address.IOException
public org.restlet.ext.nio.internal.way.InboundWay createInboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection, int bufferSize)
ConnectionHelper
createInboundWay
in class HttpServerHelper
connection
- The parent connection.bufferSize
- The byte buffer size.public org.restlet.ext.nio.internal.way.OutboundWay createOutboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection, int bufferSize)
ConnectionHelper
createOutboundWay
in class HttpServerHelper
connection
- The parent connection.bufferSize
- The byte buffer size.public Request createRequest(org.restlet.ext.nio.internal.connection.Connection<Server> connection, String methodName, String resourceUri, String protocol)
ServerConnectionHelper
createRequest
in class HttpServerHelper
connection
- 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
start
in class ServerConnectionHelper
Exception
Copyright © 2005-2014 Restlet.