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
Nested ClassesModifier and TypeClassDescriptionprotected static classprivate static classprivate static classstatic classA ClientConnectionFactory for the PROXY protocol version 1.static classA ClientConnectionFactory for the PROXY protocol version 2.Nested classes/interfaces inherited from interface ClientConnectionFactory
ClientConnectionFactory.Decorator -
Field Summary
FieldsFields inherited from interface ClientConnectionFactory
CONNECTOR_CONTEXT_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionnewConnection(EndPoint endPoint, Map<String, Object> context) protected abstract ProxyProtocolClientConnectionFactory.ProxyProtocolConnectionnewProxyProtocolConnection(EndPoint endPoint, Map<String, Object> context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientConnectionFactory
customize
-
Field Details
-
factory
-
-
Constructor Details
-
ProxyProtocolClientConnectionFactory
-
-
Method Details
-
getClientConnectionFactory
-
newConnection
- Specified by:
newConnectionin interfaceClientConnectionFactory- Parameters:
endPoint- theEndPointto 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)
-