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, setEphemeralPort
createController, createControllerService, createResponse, createWorkerService, getConnections, getController, getControllerSleepTimeMs, getInboundBufferSize, getInboundMessages, getMaxConnectionsPerHost, getMaxThreads, getMaxTotalConnections, getMinThreads, getOutboundBufferSize, getOutboundMessages, getThreadMaxIdleTimeMs, getWorkerService, handleNextInbound, handleNextOutbound, isClientSide, isControllerDaemon, isPersistingConnections, isPipeliningConnections, isServerSide, isTracing, isWorkerServiceFull
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public 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
BaseHelper
createConnection
in class BaseHelper<Server>
helper
- The parent helper.socket
- The underlying BIO socket.socketChannel
- The underlying NIO socket channel.java.io.IOException
public void start() throws java.lang.Exception
RestletHelper
start
in class BaseServerHelper
java.lang.Exception
public void stop() throws java.lang.Exception
RestletHelper
stop
in class BaseServerHelper
java.lang.Exception
Copyright © 2005-2012. All Rights Reserved.