public class HttpServerHelper extends ServerConnectionHelper
clientSide, controller, inboundMessages, outboundMessages| Constructor and Description |
|---|
HttpServerHelper(Server server)
Constructor.
|
HttpServerHelper(Server server,
Protocol protocol)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandle(Connection<Server> connection,
Response response)
Indicates if the connection can handle the given response at this point
in time.
|
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.
|
createConnection, createController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, start, 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 HttpServerHelper(Server server)
server - The server to help.protected boolean canHandle(Connection<Server> connection, Response response) throws IOException
ServerConnectionHelpercanHandle in class ServerConnectionHelperconnection - The parent connection.response - The response to handle.IOExceptionpublic InboundWay createInboundWay(Connection<Server> connection, int bufferSize)
ConnectionHelpercreateInboundWay in class ConnectionHelper<Server>connection - The parent connection.bufferSize - The byte buffer size.public OutboundWay createOutboundWay(Connection<Server> connection, int bufferSize)
ConnectionHelpercreateOutboundWay in class ConnectionHelper<Server>connection - The parent connection.bufferSize - The byte buffer size.protected Request createRequest(Connection<Server> connection, String methodName, String resourceUri, String protocol)
ServerConnectionHelpercreateRequest in class ServerConnectionHelperconnection - The associated connection.methodName - The method name.resourceUri - The target resource URI.protocol - The protocol name and version.Copyright © 2005–2015. All rights reserved.