org.openqa.selenium.server
Class ProxyHandler.SslRelay
java.lang.Object
org.openqa.jetty.util.ThreadPool
org.openqa.jetty.util.ThreadedServer
org.openqa.jetty.http.SocketListener
org.openqa.jetty.http.SslListener
org.openqa.selenium.server.ProxyHandler.SslRelay
- All Implemented Interfaces:
- Serializable, HttpListener, LifeCycle
- Enclosing class:
- ProxyHandler
public static class ProxyHandler.SslRelay
- extends SslListener
- See Also:
- Serialized Form
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 |
setNukeDirOrFile
public void setNukeDirOrFile(File nukeDirOrFile)
customizeRequest
protected void customizeRequest(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:
- an attribute named "javax.servlet.request.cipher_suite" of type String.
- an attribute named "javax.servlet.request.key_size" of type Integer.
- an attribute named "javax.servlet.request.X509Certificate" of type
java.security.cert.X509Certificate[]. This is an array of objects of type X509Certificate,
the order of this array is defined as being in ascending order of trust. The first
certificate in the chain is the one set by the client, the next is the one used to
authenticate the first, and so on.
- 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 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:
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 © 2012. All Rights Reserved.