Restlet Framework 2.2 Snapshot
Java Standard Edition

Class HttpsServerHelper

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

public class HttpsServerHelper
extends JettyServerHelper

Jetty HTTPS 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 2 The type of Jetty connector to use.
1 : Selecting NIO connector (Jetty's SslSelectChannelConnector class).
2 : Blocking BIO connector (Jetty's SslSocketConnector class)
sslContextFactory String org.restlet.engine.ssl.DefaultSslContextFactory Let you specify a SslContextFactory qualified class name as a parameter, or an instance as an attribute for a more complete and flexible SSL context setting.
For the default SSL parameters see the Javadocs of the DefaultSslContextFactory class.

Jerome Louvel
See Also:
How to configure SSL for Jetty

Constructor Summary
HttpsServerHelper(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.adapter.HttpServerHelper
getAdapter, handle, setAdapter
Methods inherited from class org.restlet.engine.connector.ServerHelper
handle, setEphemeralPort, setEphemeralPort
Methods inherited from class org.restlet.engine.connector.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 HttpsServerHelper(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.

Restlet Framework 2.2 Snapshot
Java Standard Edition

Copyright © 2005-2014 Restlet.