|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.ConnectorHelper<Server>
org.restlet.engine.ServerHelper
org.restlet.engine.http.HttpServerHelper
org.restlet.ext.netty.NettyServerHelper
org.restlet.ext.netty.HttpsServerHelper
public class HttpsServerHelper
Netty 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 |
---|---|---|---|
certAlgorithm | String | SunX509 | SSL certificate algorithm |
keyPassword | String | SSL key password | |
keystorePassword | String | SSL keystore password | |
keystorePath | String | ${user.home}/.keystore | SSL keystore path |
keystoreType | String | JKS | SSL keystore type |
sslProtocol | String | TLS | SSL protocol |
needClientAuthentication | boolean | false | Indicates if we require client certificate authentication |
wantClientAuthentication | boolean | false | Indicates if we would like client certificate authentication |
Constructor Summary | |
---|---|
HttpsServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
String |
getCertAlgorithm()
Deprecated. |
String |
getKeyPassword()
Deprecated. |
String |
getKeystorePassword()
Deprecated. |
String |
getKeystorePath()
Deprecated. |
String |
getKeystoreType()
Deprecated. |
org.jboss.netty.channel.ChannelPipelineFactory |
getPipelineFatory()
Returns the Netty pipeline factory. |
SSLContext |
getSslContext()
Gets the SSL context used by this server. |
String |
getSslProtocol()
Deprecated. |
boolean |
isNeedClientAuthentication()
Indicates if we require client certificate authentication. |
boolean |
isWantClientAuthentication()
Indicates if we would like client certificate authentication. |
void |
setSslContext(SSLContext sslContext)
Sets the SSL context for the server. |
void |
start()
|
Methods inherited from class org.restlet.ext.netty.NettyServerHelper |
---|
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 HttpsServerHelper(Server server)
server
- The helped server.Method Detail |
---|
@Deprecated public String getCertAlgorithm()
@Deprecated public String getKeyPassword()
@Deprecated public String getKeystorePassword()
@Deprecated public String getKeystorePath()
@Deprecated public String getKeystoreType()
public org.jboss.netty.channel.ChannelPipelineFactory getPipelineFatory()
NettyServerHelper
getPipelineFatory
in class NettyServerHelper
public SSLContext getSslContext()
@Deprecated public String getSslProtocol()
public boolean isNeedClientAuthentication()
public boolean isWantClientAuthentication()
public void setSslContext(SSLContext sslContext)
sslContext
- the SSL contextpublic void start() throws Exception
start
in class NettyServerHelper
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |