Package org.restlet.engine.connector
Class HttpsServerHelper
- java.lang.Object
-
public class HttpsServerHelper extends NetServerHelper
Internal 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:
For the default SSL parameters see the Javadocs of theParameter name Value type Default value Description sslContextFactory String org.restlet.engine.ssl.DefaultSslContextFactory Let you specify a SslContextFactoryqualified class name as a parameter, or an instance as an attribute for a more complete and flexible SSL context setting.DefaultSslContextFactoryclass.
-
-
Field Summary
Fields Modifier and Type Field Description private com.sun.net.httpserver.HttpsServerserverThe underlying HTTPS server.
-
Constructor Summary
Constructors Constructor Description HttpsServerHelper(Server server)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Starts the Restlet.voidstop()Stop callback.-
Methods inherited from class org.restlet.engine.connector.NetServerHelper
createThreadPool, getAddress, getMaxQueued, getMaxThreadIdleTimeMs, getMaxThreads, getMinThreads, isConfidential, setAddress, setConfidential
-
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
-
-
-
-
Constructor Detail
-
HttpsServerHelper
public HttpsServerHelper(Server server)
Constructor.- Parameters:
server- The server to help.
-
-
Method Detail
-
start
public void start() throws java.lang.ExceptionStarts the Restlet.- Overrides:
startin classNetServerHelper- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.ExceptionDescription copied from class:RestletHelperStop callback.- Overrides:
stopin classNetServerHelper- Throws:
java.lang.Exception
-
-