|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.HttpListener
winstone.ssl.HttpsListener
public class HttpsListener
Implements the main listener daemon thread. This is the class that gets launched by the command line, and owns the server socket, etc.
Field Summary |
---|
Fields inherited from class winstone.HttpListener |
---|
BACKLOG_COUNT, CONNECTION_TIMEOUT, DEFAULT_HNL, doHostnameLookups, hostGroup, interrupted, KEEP_ALIVE_SLEEP, KEEP_ALIVE_SLEEP_MAX, KEEP_ALIVE_TIMEOUT, listenAddress, LISTENER_TIMEOUT, listenPort, objectPool |
Constructor Summary | |
---|---|
HttpsListener(java.util.Map args,
ObjectPool objectPool,
HostGroup hostGroup)
Constructor |
Method Summary | |
---|---|
protected java.lang.String |
getConnectorScheme()
The name to use when getting properties - this is just so that we can override for the SSL connector. |
protected int |
getDefaultPort()
The default port to use - this is just so that we can override for the SSL connector. |
protected java.net.ServerSocket |
getServerSocket()
Gets a server socket - this gets as SSL socket instead of the standard socket returned in the base class. |
javax.net.ssl.SSLContext |
getSSLContext()
Used to get the base ssl context in which to create the server socket. |
protected void |
parseSocketInfo(java.net.Socket socket,
WinstoneRequest req)
Extracts the relevant socket stuff and adds it to the request object. |
Methods inherited from class winstone.HttpListener |
---|
allocateRequestResponse, deallocateRequestResponse, destroy, getConnectorName, parseHeaders, parseURI, processKeepAlive, releaseSocket, run, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpsListener(java.util.Map args, ObjectPool objectPool, HostGroup hostGroup) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected int getDefaultPort()
getDefaultPort
in class HttpListener
protected java.lang.String getConnectorScheme()
getConnectorScheme
in class HttpListener
protected java.net.ServerSocket getServerSocket() throws java.io.IOException
getServerSocket
in class HttpListener
java.io.IOException
protected void parseSocketInfo(java.net.Socket socket, WinstoneRequest req) throws java.io.IOException
parseSocketInfo
in class HttpListener
java.io.IOException
public javax.net.ssl.SSLContext getSSLContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |