org.openqa.selenium.server
Class ProxyHandler.SslRelay

java.lang.Object
  extended by org.openqa.jetty.util.ThreadPool
      extended by org.openqa.jetty.util.ThreadedServer
          extended by org.openqa.jetty.http.SocketListener
              extended by org.openqa.jetty.http.SslListener
                  extended by org.openqa.selenium.server.ProxyHandler.SslRelay
All Implemented Interfaces:
java.io.Serializable, HttpListener, LifeCycle
Enclosing class:
ProxyHandler

public static class ProxyHandler.SslRelay
extends SslListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openqa.jetty.util.ThreadPool
ThreadPool.PoolThread
 
Field Summary
 
Fields inherited from class org.openqa.jetty.http.SslListener
DEFAULT_KEYSTORE, KEYPASSWORD_PROPERTY, PASSWORD_PROPERTY
 
Fields inherited from class org.openqa.jetty.util.ThreadPool
__DAEMON, __PRIORITY
 
Fields inherited from interface org.openqa.jetty.http.HttpListener
ATTRIBUTE
 
Method Summary
protected  void customizeRequest(java.net.Socket socket, HttpRequest request)
          Allow the Listener a chance to customise the request. before the server does its stuff.
 void setNukeDirOrFile(java.io.File nukeDirOrFile)
           
 void stop()
          Stop the ThreadPool.
 
Methods inherited from class org.openqa.jetty.http.SslListener
accept, createFactory, getAlgorithm, getCipherSuites, getKeystore, getKeystoreType, getNeedClientAuth, getProtocol, getProvider, getWantClientAuth, isConfidential, isIntegral, newServerSocket, setAlgorithm, setCipherSuites, setKeyPassword, setKeystore, setKeystoreType, setNeedClientAuth, setPassword, setProtocol, setProvider, setWantClientAuth
 
Methods inherited from class org.openqa.jetty.http.SocketListener
createConnection, customizeRequest, getBufferReserve, getBufferSize, getConfidentialPort, getConfidentialScheme, getDefaultScheme, getHttpHandler, getHttpServer, getIdentifyListener, getIntegralPort, getIntegralScheme, getLowResourcePersistTimeMs, getLowResources, handleConnection, isLowOnResources, isOutOfResources, persistConnection, setBufferReserve, setBufferSize, setConfidentialPort, setConfidentialScheme, setDefaultScheme, setHttpHandler, setHttpServer, setIdentifyListener, setIntegralPort, setIntegralScheme, setLowResourcePersistTimeMs, setLowResources, start
 
Methods inherited from class org.openqa.jetty.util.ThreadedServer
acceptSocket, acceptSocket, getAcceptorThreads, getAcceptQueueSize, getHost, getInetAddress, getInetAddrPort, getLingerTimeSecs, getMaxReadTimeMs, getPort, getServerSocket, getTcpNoDelay, handle, handleConnection, open, setAcceptorThreads, setAcceptQueueSize, setHost, setInetAddress, setInetAddrPort, setLingerTimeSecs, setMaxReadTimeMs, setPort, setTcpNoDelay, stopJob, toString
 
Methods inherited from class org.openqa.jetty.util.ThreadPool
getIdleThreads, getMaxIdleTimeMs, getMaxThreads, getMinThreads, getName, getPoolName, getThreads, getThreadsPriority, isDaemon, isStarted, join, run, setDaemon, setMaxIdleTimeMs, setMaxStopTimeMs, setMaxThreads, setMinThreads, setName, setPoolName, setThreadsPriority, shrink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openqa.jetty.http.HttpListener
getHost, getPort, setHost, setPort
 
Methods inherited from interface org.openqa.jetty.util.LifeCycle
isStarted
 

Method Detail

setNukeDirOrFile

public void setNukeDirOrFile(java.io.File nukeDirOrFile)

customizeRequest

protected void customizeRequest(java.net.Socket socket,
                                HttpRequest request)
Description copied from class: SslListener
Allow the Listener a chance to customise the request. before the server does its stuff.
This allows the required attributes to be set for SSL requests.
The requirements of the Servlet specs are:

Overrides:
customizeRequest in class SslListener
Parameters:
socket - The Socket the request arrived on. This should be a javax.net.ssl.SSLSocket.
request - HttpRequest to be customised.

stop

public void stop()
          throws java.lang.InterruptedException
Description copied from class: ThreadPool
Stop the ThreadPool. New jobs are no longer accepted,idle threads are interrupted and stopJob is called on active threads. The method then waits min(getMaxStopTimeMs(),getMaxIdleTimeMs()), for all jobs to stop, at which time killJob is called.

Specified by:
stop in interface LifeCycle
Overrides:
stop in class SocketListener
Throws:
java.lang.InterruptedException - Stopping a lifecycle is rarely atomic and may be interrupted by another thread. If this happens InterruptedException is throw and the component will be in an indeterminant state and should probably be discarded.


Copyright © 2011. All Rights Reserved.