public class HttpServerHelper extends BaseServerHelper
| Constructor and Description |
|---|
HttpServerHelper(Server server)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connection<Server> |
createConnection(BaseHelper<Server> helper,
java.net.Socket socket,
java.nio.channels.SocketChannel socketChannel)
Creates a connection associated to the given socket.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
createAcceptorService, createServerSocket, createSocketAddress, getServerSocket, handle, handleInbound, handleOutbound, isProxying, setEphemeralPort, setEphemeralPortcreateController, createControllerService, createResponse, createWorkerService, getConnections, getController, getControllerSleepTimeMs, getInboundBufferSize, getInboundMessages, getMaxConnectionsPerHost, getMaxThreads, getMaxTotalConnections, getMinThreads, getOutboundBufferSize, getOutboundMessages, getThreadMaxIdleTimeMs, getWorkerService, handleNextInbound, handleNextOutbound, isClientSide, isControllerDaemon, isPersistingConnections, isPipeliningConnections, isServerSide, isTracing, isWorkerServiceFullgetConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic HttpServerHelper(Server server)
server - The server to help.protected Connection<Server> createConnection(BaseHelper<Server> helper, java.net.Socket socket, java.nio.channels.SocketChannel socketChannel) throws java.io.IOException
BaseHelpercreateConnection in class BaseHelper<Server>helper - The parent helper.socket - The underlying BIO socket.socketChannel - The underlying NIO socket channel.java.io.IOExceptionpublic void start()
throws java.lang.Exception
RestletHelperstart in class BaseServerHelperjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
RestletHelperstop in class BaseServerHelperjava.lang.ExceptionCopyright © 2005-2012. All Rights Reserved.