Package org.restlet.ext.nio
Class HttpServerHelper
- java.lang.Object
-
- Direct Known Subclasses:
HttpsServerHelper
@Deprecated public class HttpServerHelper extends ServerConnectionHelper
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.HTTP server helper based on NIO blocking sockets.
-
-
Field Summary
-
Fields inherited from class org.restlet.ext.nio.BaseHelper
clientSide, controller, inboundMessages, outboundMessages
-
-
Constructor Summary
Constructors Constructor Description HttpServerHelper(Server server)Deprecated.Constructor.HttpServerHelper(Server server, Protocol protocol)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancanHandle(Connection<Server> connection, Response response)Deprecated.Indicates if the connection can handle the given response at this point in time.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.-
Methods inherited from class org.restlet.ext.nio.ServerConnectionHelper
createConnection, createController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, start, 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
-
HttpServerHelper
public HttpServerHelper(Server server)
Deprecated.Constructor.- Parameters:
server- The server to help.
-
-
Method Detail
-
canHandle
protected boolean canHandle(Connection<Server> connection, Response response) throws java.io.IOException
Deprecated.Description copied from class:ServerConnectionHelperIndicates if the connection can handle the given response at this point in time.- Specified by:
canHandlein classServerConnectionHelper- Parameters:
connection- The parent connection.response- The response to handle.- Returns:
- True if the connection can handle the given response at this point in time.
- 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.- Specified by:
createInboundWayin classConnectionHelper<Server>- 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.- Specified by:
createOutboundWayin classConnectionHelper<Server>- 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.- Specified by:
createRequestin classServerConnectionHelper- Parameters:
connection- The associated connection.methodName- The method name.resourceUri- The target resource URI.protocol- The protocol name and version.- Returns:
- The created request.
-
-