|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.Agent
com.cometway.httpd.WebServer
com.cometway.httpd.SecureWebServer
public class SecureWebServer
Routes HTTPS Requests from a server socket
| Field Summary | |
|---|---|
static java.lang.String |
VERSION_STR
|
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
SecureWebServer()
|
|
| Method Summary | |
|---|---|
protected java.net.ServerSocket |
getServerSocket(java.lang.String bind_address,
int port)
This method uses the server key and certificate to create an SSLServerSocket. |
void |
initProps()
Initializes this agent's properties by providing default values for each of the following missing properties: 'bind_port' (default: 443) 'certificate1' (default: testcert.pem) This must be a non-passphrased X509 certificate in PEM format 'server_key' (default: testkey.key) This must be a non-passphrased PKCS8 encoded private key associated with the certificate in PEM format The certificate and key properties are pathnames to a certificate and private key. |
protected byte[] |
readBinaryFile(java.io.File file)
|
| Methods inherited from class com.cometway.httpd.WebServer |
|---|
addExtension, clearExtensionsCache, getExtensions, getHTMLByCode, getHTMLByCode, getHTMLByCode, getMimeType, getRequestAgent, loadDefaultMimeTypes, loadMimeTypes, printThreads, run, start, stop |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION_STR
| Constructor Detail |
|---|
public SecureWebServer()
| Method Detail |
|---|
public void initProps()
initProps in interface AgentInterfaceinitProps in class WebServerfor the rest of the properties
protected java.net.ServerSocket getServerSocket(java.lang.String bind_address,
int port)
throws java.io.IOException
getServerSocket in class WebServerjava.io.IOExceptionprotected byte[] readBinaryFile(java.io.File file)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||