org.restlet.engine.http.connector
Class HttpServerHelper
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.ConnectorHelper<T>
org.restlet.engine.http.connector.BaseHelper<Server>
org.restlet.engine.http.connector.BaseServerHelper
org.restlet.engine.http.connector.HttpServerHelper
public class HttpServerHelper
- extends BaseServerHelper
HTTP server helper based on NIO blocking sockets.
- Author:
- Jerome Louvel
Methods inherited from class org.restlet.engine.http.connector.BaseHelper |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServerHelper
public HttpServerHelper(Server server)
- Constructor.
- Parameters:
server
- The server to help.
createConnection
protected Connection<Server> createConnection(BaseHelper<Server> helper,
Socket socket,
SocketChannel socketChannel)
throws IOException
- Description copied from class:
BaseHelper
- Creates a connection associated to the given socket.
- Specified by:
createConnection
in class BaseHelper<Server>
- Parameters:
helper
- The parent helper.socket
- The underlying BIO socket.socketChannel
- The underlying NIO socket channel.
- Returns:
- The new connection.
- Throws:
IOException
start
public void start()
throws Exception
- Description copied from class:
RestletHelper
- Start callback.
- Overrides:
start
in class BaseServerHelper
- Throws:
Exception
stop
public void stop()
throws Exception
- Description copied from class:
RestletHelper
- Stop callback.
- Overrides:
stop
in class BaseServerHelper
- Throws:
Exception
Copyright © 2005-2011 Noelios Technologies.