Class HttpServerHelper

  extended by org.restlet.engine.Helper
      extended by org.restlet.engine.RestletHelper<T>
          extended by org.restlet.engine.ConnectorHelper<Server>
              extended by org.restlet.engine.ServerHelper
                  extended by org.restlet.engine.http.HttpServerHelper
                      extended by org.restlet.ext.jetty.JettyServerHelper
                          extended by org.restlet.ext.jetty.HttpServerHelper

public class HttpServerHelper
extends JettyServerHelper

Jetty HTTP server connector. Here is the list of additional parameters that are supported. They should be set in the Server's context before it is started:

Parameter name Value type Default value Description
type int 1 The type of Jetty connector to use.
1 : Selecting NIO connector (Jetty's SelectChannelConnector class).
2 : Blocking NIO connector (Jetty's BlockingChannelConnector class).
3 : Blocking BIO connector (Jetty's SocketConnector class).

Jerome Louvel
See Also:
Jetty home page

Constructor Summary
HttpServerHelper(Server server)
Method Summary
protected  AbstractConnector createConnector()
          Creates a new internal Jetty connector.
 int getType()
          Returns the type of Jetty connector to use.
Methods inherited from class org.restlet.ext.jetty.JettyServerHelper
configure, getAcceptorThreads, getAcceptQueueSize, getGracefulShutdown, getIoMaxIdleTimeMs, getLowResourcesMaxIdleTimeMs, getMaxThreads, getMinThreads, getRequestBufferSize, getRequestHeaderSize, getResponseBufferSize, getResponseHeaderSize, getSoLingerTime, getThreadMaxIdleTimeMs, getWrappedServer, setWrappedServer, start, stop
Methods inherited from class org.restlet.engine.http.HttpServerHelper
getAdapter, handle, setAdapter
Methods inherited from class org.restlet.engine.ServerHelper
handle, setEphemeralPort, setEphemeralPort
Methods inherited from class org.restlet.engine.ConnectorHelper
getConnectorService, getContext, getProtocols, update
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HttpServerHelper(Server server)

server - The server to help.
Method Detail


protected AbstractConnector createConnector()
Creates a new internal Jetty connector.

Specified by:
createConnector in class JettyServerHelper
A new internal Jetty connector.


public int getType()
Returns the type of Jetty connector to use.

The type of Jetty connector to use.

Copyright © 2005-2013 Restlet S.A.S..