public class SslSimpletonServer extends Object implements org.simpleframework.http.core.Container
| Modifier and Type | Class and Description |
|---|---|
static class |
SslSimpletonServer.AnonymousTrustManager |
class |
SslSimpletonServer.TaskMonitor |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEYSTORE_ALGORITHM |
protected Stage<Task> |
dispatchStage |
| Constructor and Description |
|---|
SslSimpletonServer(HttpManager httpManager,
Http11ResponseHandler responseHandler,
int capacity,
int numThreads) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHttpPort() |
String |
getKeystoreAlgorithm() |
File |
getKeystoreFile() |
String |
getKeystorePassword() |
String |
getKeystoreType() |
int |
getMaxProcessTimeMillis() |
int |
getMaxQueueTimeMillis() |
String |
getSslProtocol() |
void |
handle(org.simpleframework.http.Request request,
org.simpleframework.http.Response response) |
protected org.simpleframework.transport.connect.SocketConnection |
initHttps(int port)
Setting up certificates
EG C:\Program Files\Java\jdk1.6.0_10\bin>keytool -genkey -keystore certs -keyalg rsa -alias jamie -storepass serverkspw -keypass serverpw
note that 'first name last name' should be machine name
|
void |
respondError(SimpleMiltonRequest req,
SimpleMiltonResponse resp,
String reason) |
void |
setHttpPort(Integer sslPort) |
void |
setKeystoreAlgorithm(String keystoreAlgorithm) |
void |
setKeystoreFile(File keystoreFile) |
void |
setKeystorePassword(String keystorePassword) |
void |
setKeystoreType(String keystoreType) |
void |
setMaxProcessTimeMillis(int maxProcessTimeMillis) |
void |
setMaxQueueTimeMillis(int maxQueueTimeMillis) |
void |
setSslProtocol(String sslProtocol) |
void |
start() |
void |
stop() |
public static final String DEFAULT_KEYSTORE_ALGORITHM
public SslSimpletonServer(HttpManager httpManager, Http11ResponseHandler responseHandler, int capacity, int numThreads)
public void start()
protected org.simpleframework.transport.connect.SocketConnection initHttps(int port)
connection - port - public void stop()
public void handle(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
handle in interface org.simpleframework.http.core.Containerpublic void respondError(SimpleMiltonRequest req, SimpleMiltonResponse resp, String reason)
public Integer getHttpPort()
public void setHttpPort(Integer sslPort)
public File getKeystoreFile()
public void setKeystoreFile(File keystoreFile)
public String getKeystorePassword()
public void setKeystorePassword(String keystorePassword)
public String getSslProtocol()
public void setSslProtocol(String sslProtocol)
public String getKeystoreAlgorithm()
public void setKeystoreAlgorithm(String keystoreAlgorithm)
public String getKeystoreType()
public void setKeystoreType(String keystoreType)
public int getMaxProcessTimeMillis()
public void setMaxProcessTimeMillis(int maxProcessTimeMillis)
public int getMaxQueueTimeMillis()
public void setMaxQueueTimeMillis(int maxQueueTimeMillis)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.