| java.lang.Object winstone.HttpListener winstone.ssl.HttpsListener
HttpsListener | public class HttpsListener extends HttpListener (Code) | | Implements the main listener daemon thread. This is the class that gets
launched by the command line, and owns the server socket, etc.
author: Rick Knowles version: $Id: HttpsListener.java,v 1.10 2007/06/13 15:27:35 rickknowles Exp $ |
Method Summary | |
protected 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. | public SSLContext | getSSLContext(String keyStoreName, String password) Used to get the base ssl context in which to create the server socket. | protected ServerSocket | getServerSocket() Gets a server socket - this gets as SSL socket instead of the standard
socket returned in the base class. | protected void | parseSocketInfo(Socket socket, WinstoneRequest req) Extracts the relevant socket stuff and adds it to the request object. |
getConnectorScheme | protected String getConnectorScheme()(Code) | | The name to use when getting properties - this is just so that we can
override for the SSL connector.
|
getDefaultPort | protected int getDefaultPort()(Code) | | The default port to use - this is just so that we can override for the
SSL connector.
|
getSSLContext | public SSLContext getSSLContext(String keyStoreName, String password) throws IOException(Code) | | Used to get the base ssl context in which to create the server socket.
This is basically just so we can have a custom location for key stores.
|
getServerSocket | protected ServerSocket getServerSocket() throws IOException(Code) | | Gets a server socket - this gets as SSL socket instead of the standard
socket returned in the base class.
|
parseSocketInfo | protected void parseSocketInfo(Socket socket, WinstoneRequest req) throws IOException(Code) | | Extracts the relevant socket stuff and adds it to the request object.
This method relies on the base class for everything other than SSL
related attributes
|
Methods inherited from winstone.HttpListener | public void allocateRequestResponse(Socket socket, InputStream inSocket, OutputStream outSocket, RequestHandlerThread handler, boolean iAmFirst) throws SocketException, IOException(Code)(Java Doc) public void deallocateRequestResponse(RequestHandlerThread handler, WinstoneRequest req, WinstoneResponse rsp, WinstoneInputStream inData, WinstoneOutputStream outData) throws IOException(Code)(Java Doc) public void destroy()(Code)(Java Doc) protected String getConnectorName()(Code)(Java Doc) protected String getConnectorScheme()(Code)(Java Doc) protected int getDefaultPort()(Code)(Java Doc) protected ServerSocket getServerSocket() throws IOException(Code)(Java Doc) public void parseHeaders(WinstoneRequest req, WinstoneInputStream inData) throws IOException(Code)(Java Doc) protected void parseSocketInfo(Socket socket, WinstoneRequest req) throws IOException(Code)(Java Doc) public String parseURI(RequestHandlerThread handler, WinstoneRequest req, WinstoneResponse rsp, WinstoneInputStream inData, Socket socket, boolean iAmFirst) throws IOException(Code)(Java Doc) public boolean processKeepAlive(WinstoneRequest request, WinstoneResponse response, InputStream inSocket) throws IOException, InterruptedException(Code)(Java Doc) public void releaseSocket(Socket socket, InputStream inSocket, OutputStream outSocket) throws IOException(Code)(Java Doc) public void run()(Code)(Java Doc) public boolean start()(Code)(Java Doc)
|
|
|