com.noelios.restlet.ext.simple
Class HttpsServerHelper

java.lang.Object
  extended by org.restlet.util.Helper
      extended by com.noelios.restlet.ConnectorHelper
          extended by com.noelios.restlet.ServerHelper
              extended by com.noelios.restlet.http.HttpServerHelper
                  extended by com.noelios.restlet.ext.simple.SimpleServerHelper
                      extended by com.noelios.restlet.ext.simple.HttpsServerHelper

public class HttpsServerHelper
extends SimpleServerHelper

Simple HTTP server connector. Here is the list of additional parameters that are supported:

Parameter name Value type Default value Description
keystorePath String ${user.home}/.keystore SSL keystore path.
keystorePassword String SSL keystore password.
keystoreType String JKS SSL keystore type
keyPassword String SSL key password.
certAlgorithm String SunX509 SSL certificate algorithm.
sslProtocol String TLS SSL protocol.

Author:
Lars Heuer (heuer[at]semagia.com), Jerome Louvel (contact@noelios.com)

Constructor Summary
HttpsServerHelper(Server server)
          Constructor.
 
Method Summary
 String getCertAlgorithm()
          Returns the SSL certificate algorithm.
 String getKeyPassword()
          Returns the SSL key password.
 String getKeystorePassword()
          Returns the SSL keystore password.
 String getKeystorePath()
          Returns the SSL keystore path.
 String getKeystoreType()
          Returns the SSL keystore type.
 String getSslProtocol()
          Returns the SSL keystore type.
 void start()
          Starts the Restlet.
 
Methods inherited from class com.noelios.restlet.ext.simple.SimpleServerHelper
getConnection, getDefaultThreads, getHandler, getMaxWaitTimeMs, getSocket, isConfidential, setConfidential, setConnection, setHandler, setSocket, stop
 
Methods inherited from class com.noelios.restlet.http.HttpServerHelper
getConverter, handle, setConverter
 
Methods inherited from class com.noelios.restlet.ServerHelper
getContext, getLogger, getParameters, getServer, handle, setServer
 
Methods inherited from class com.noelios.restlet.ConnectorHelper
createContext, getProtocols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsServerHelper

public HttpsServerHelper(Server server)
Constructor.

Parameters:
server - The server to help.
Method Detail

start

public void start()
           throws Exception
Starts the Restlet.

Overrides:
start in class ConnectorHelper
Throws:
Exception

getKeystorePath

public String getKeystorePath()
Returns the SSL keystore path.

Returns:
The SSL keystore path.

getKeystorePassword

public String getKeystorePassword()
Returns the SSL keystore password.

Returns:
The SSL keystore password.

getKeystoreType

public String getKeystoreType()
Returns the SSL keystore type.

Returns:
The SSL keystore type.

getKeyPassword

public String getKeyPassword()
Returns the SSL key password.

Returns:
The SSL key password.

getCertAlgorithm

public String getCertAlgorithm()
Returns the SSL certificate algorithm.

Returns:
The SSL certificate algorithm.

getSslProtocol

public String getSslProtocol()
Returns the SSL keystore type.

Returns:
The SSL keystore type.


Copyright © 2005-2007 Noelios Consulting.