Package org.eclipse.jetty.client
Class ProxyProtocolClientConnectionFactory
- java.lang.Object
-
- org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory
-
- All Implemented Interfaces:
ClientConnectionFactory
- Direct Known Subclasses:
ProxyProtocolClientConnectionFactory.V1
,ProxyProtocolClientConnectionFactory.V2
public abstract class ProxyProtocolClientConnectionFactory extends java.lang.Object implements ClientConnectionFactory
ClientConnectionFactory for the PROXY protocol.
Use the
ProxyProtocolClientConnectionFactory.V1
orProxyProtocolClientConnectionFactory.V2
versions of this class to specify what version of the PROXY protocol you want to use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ProxyProtocolClientConnectionFactory.ProxyProtocolConnection
static class
ProxyProtocolClientConnectionFactory.V1
A ClientConnectionFactory for the PROXY protocol version 1.static class
ProxyProtocolClientConnectionFactory.V2
A ClientConnectionFactory for the PROXY protocol version 2.-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ClientConnectionFactory
getClientConnectionFactory()
Connection
newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
protected abstract ProxyProtocolClientConnectionFactory.ProxyProtocolConnection
newProxyProtocolConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
customize
-
-
-
-
Method Detail
-
getClientConnectionFactory
public ClientConnectionFactory getClientConnectionFactory()
-
newConnection
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
- Specified by:
newConnection
in interfaceClientConnectionFactory
- Parameters:
endPoint
- theEndPoint
to link the newly created connection tocontext
- the context data to create the connection- Returns:
- a new
Connection
-
newProxyProtocolConnection
protected abstract ProxyProtocolClientConnectionFactory.ProxyProtocolConnection newProxyProtocolConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
-
-