Class ProxyProtocolClientConnectionFactory
java.lang.Object
org.eclipse.jetty.io.ClientConnectionFactory.Wrapper
org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory
- All Implemented Interfaces:
ClientConnectionFactory
- Direct Known Subclasses:
ProxyProtocolClientConnectionFactory.V1, ProxyProtocolClientConnectionFactory.V2
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 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, ClientConnectionFactory.Info, ClientConnectionFactory.Wrapper -
Field Summary
Fields inherited from interface ClientConnectionFactory
CONTEXT_KEY -
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 ClientConnectionFactory.Wrapper
customize, getWrapped
-
Method Details
-
newConnection
- Specified by:
newConnectionin interfaceClientConnectionFactory- Overrides:
newConnectionin classClientConnectionFactory.Wrapper- 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)
-