Package org.restlet.ext.nio
Class HttpsServerHelper
- java.lang.Object
-
@Deprecated public class HttpsServerHelper extends HttpServerHelper
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.HTTPS server helper based on NIO blocking sockets. Here is the list of SSL related parameters that are also supported:
For the default SSL parameters see the Javadocs of theParameter name Value type Default value Description sslContextFactory String org.restlet.engine.ssl.DefaultSslContextFactory Let you specify a SslContextFactoryqualified class name as a parameter, or an instance as an attribute for a more complete and flexible SSL context setting.DefaultSslContextFactoryclass.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.net.ssl.SSLContextsslContextDeprecated.The SSL context.-
Fields inherited from class org.restlet.ext.nio.BaseHelper
clientSide, controller, inboundMessages, outboundMessages
-
-
Constructor Summary
Constructors Constructor Description HttpsServerHelper(Server server)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Connection<Server>createConnection(java.nio.channels.SocketChannel socketChannel, ConnectionController controller, java.net.InetSocketAddress socketAddress)Deprecated.Creates a connection associated to the given socket.InboundWaycreateInboundWay(Connection<Server> connection, int bufferSize)Deprecated.Creates an inbound way for the given connection.OutboundWaycreateOutboundWay(Connection<Server> connection, int bufferSize)Deprecated.Creates an outbound way for the given connection.RequestcreateRequest(Connection<Server> connection, java.lang.String methodName, java.lang.String resourceUri, java.lang.String protocol)Deprecated.Creates a new request.protected javax.net.ssl.SSLContextgetSslContext()Deprecated.Returns the SSL context.protected voidsetSslContext(javax.net.ssl.SSLContext sslContext)Deprecated.Sets the SSL context.voidstart()Deprecated.Start callback.-
Methods inherited from class org.restlet.ext.nio.HttpServerHelper
canHandle
-
Methods inherited from class org.restlet.ext.nio.ServerConnectionHelper
createController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, stop
-
Methods inherited from class org.restlet.ext.nio.ConnectionHelper
addOutboundMessage, checkin, checkout, configure, createConnectionPool, doFinishStop, doGracefulStop, getConnectionPool, getConnections, getInitialConnections, getMaxConnectionsPerHost, getMaxTotalConnections, getSocketLingerTimeMs, getSocketReceiveBufferSize, getSocketSendBufferSize, getSocketTrafficClass, isPersistingConnections, isPipeliningConnections, isPooledConnection, isSocketKeepAlive, isSocketNoDelay, isSocketOobInline, isSocketReuseAddress
-
Methods inherited from class org.restlet.ext.nio.BaseHelper
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
-
Methods inherited from class org.restlet.engine.connector.ConnectorHelper
getConnectorService, getContext, getProtocols, update
-
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
-
-
-
Constructor Detail
-
HttpsServerHelper
public HttpsServerHelper(Server server)
Deprecated.Constructor.- Parameters:
server- The server to help.
-
-
Method Detail
-
createConnection
public Connection<Server> createConnection(java.nio.channels.SocketChannel socketChannel, ConnectionController controller, java.net.InetSocketAddress socketAddress) throws java.io.IOException
Deprecated.Description copied from class:ConnectionHelperCreates a connection associated to the given socket.- Overrides:
createConnectionin classServerConnectionHelper- Parameters:
socketChannel- The underlying NIO socket channel.controller- The underlying IO controller.socketAddress- The associated IP address.- Returns:
- The new connection.
- Throws:
java.io.IOException
-
createInboundWay
public InboundWay createInboundWay(Connection<Server> connection, int bufferSize)
Deprecated.Description copied from class:ConnectionHelperCreates an inbound way for the given connection.- Overrides:
createInboundWayin classHttpServerHelper- Parameters:
connection- The parent connection.bufferSize- The byte buffer size.- Returns:
- The inbound way created.
-
createOutboundWay
public OutboundWay createOutboundWay(Connection<Server> connection, int bufferSize)
Deprecated.Description copied from class:ConnectionHelperCreates an outbound way for the given connection.- Overrides:
createOutboundWayin classHttpServerHelper- Parameters:
connection- The parent connection.bufferSize- The byte buffer size.- Returns:
- The outbound way created.
-
createRequest
public Request createRequest(Connection<Server> connection, java.lang.String methodName, java.lang.String resourceUri, java.lang.String protocol)
Deprecated.Description copied from class:ServerConnectionHelperCreates a new request.- Overrides:
createRequestin classHttpServerHelper- Parameters:
connection- The associated connection.methodName- The method name.resourceUri- The target resource URI.protocol- The protocol name and version.- Returns:
- The created request.
-
getSslContext
protected javax.net.ssl.SSLContext getSslContext()
Deprecated.Returns the SSL context.- Returns:
- The SSL context.
-
setSslContext
protected void setSslContext(javax.net.ssl.SSLContext sslContext)
Deprecated.Sets the SSL context.- Parameters:
sslContext- The SSL context.
-
start
public void start() throws java.lang.ExceptionDeprecated.Description copied from class:RestletHelperStart callback.- Overrides:
startin classServerConnectionHelper- Throws:
java.lang.Exception
-
-