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 Object
implements ClientConnectionFactory
ClientConnectionFactory for the PROXY protocol.
Use the ProxyProtocolClientConnectionFactory.V1
or ProxyProtocolClientConnectionFactory.V2
versions of this class to specify what version of the
PROXY protocol you want to use.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
static class
A ClientConnectionFactory for the PROXY protocol version 1.static class
A ClientConnectionFactory for the PROXY protocol version 2.Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator, ClientConnectionFactory.Info
-
Field Summary
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CLIENT_CONTEXT_KEY
-
Method Summary
Modifier and TypeMethodDescriptionnewConnection
(EndPoint endPoint, Map<String, Object> context) protected abstract ProxyProtocolClientConnectionFactory.ProxyProtocolConnection
newProxyProtocolConnection
(EndPoint endPoint, Map<String, 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 Details
-
getClientConnectionFactory
-
newConnection
- 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, Map<String, Object> context)
-