winstone.ssl
Class HttpsListener

java.lang.Object
  extended by winstone.HttpListener
      extended by winstone.ssl.HttpsListener
All Implemented Interfaces:
java.lang.Runnable, Listener

public class HttpsListener
extends HttpListener

Implements the main listener daemon thread. This is the class that gets launched by the command line, and owns the server socket, etc.

Version:
$Id: HttpsListener.java,v 1.10 2007/06/13 15:27:35 rickknowles Exp $
Author:
Rick Knowles

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

HttpsListener

public HttpsListener(java.util.Map args,
                     ObjectPool objectPool,
                     HostGroup hostGroup)
              throws java.io.IOException
Constructor

Throws:
java.io.IOException
Method Detail

getDefaultPort

protected int getDefaultPort()
The default port to use - this is just so that we can override for the SSL connector.

Overrides:
getDefaultPort in class HttpListener

getConnectorScheme

protected java.lang.String getConnectorScheme()
The name to use when getting properties - this is just so that we can override for the SSL connector.

Overrides:
getConnectorScheme in class HttpListener

getServerSocket

protected java.net.ServerSocket getServerSocket()
                                         throws java.io.IOException
Gets a server socket - this gets as SSL socket instead of the standard socket returned in the base class.

Overrides:
getServerSocket in class HttpListener
Throws:
java.io.IOException

parseSocketInfo

protected void parseSocketInfo(java.net.Socket socket,
                               WinstoneRequest req)
                        throws java.io.IOException
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

Overrides:
parseSocketInfo in class HttpListener
Throws:
java.io.IOException

getSSLContext

public javax.net.ssl.SSLContext getSSLContext()
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.



Copyright © 2013. All Rights Reserved.