Package org.eclipse.jetty.client
Class ProxyProtocolClientConnectionFactory.V1.Tag
java.lang.Object
org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory.V1.Tag
- All Implemented Interfaces:
ClientConnectionFactory.Decorator
- Enclosing class:
- ProxyProtocolClientConnectionFactory.V1
public static class ProxyProtocolClientConnectionFactory.V1.Tag
extends Object
implements ClientConnectionFactory.Decorator
PROXY protocol version 1 metadata holder to be used in conjunction
with Request.tag(Object)
.
Instances of this class are associated to a destination so that all connections of that destination will initiate the communication with the PROXY protocol version 1 bytes specified by this metadata.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ProxyProtocolClientConnectionFactory.V1.Tag
The PROXY V1 Tag typically used to "ping" the server. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ClientConnectionFactory factory) Wraps the givenfactory
.boolean
int
int
int
hashCode()
-
Field Details
-
UNKNOWN
The PROXY V1 Tag typically used to "ping" the server.
-
-
Constructor Details
-
Tag
public Tag()Creates a Tag whose metadata will be derived from the underlying EndPoint.
-
Tag
Creates a Tag with the given source metadata.
The destination metadata will be derived from the underlying EndPoint.
- Parameters:
srcIP
- the source IP addresssrcPort
- the source port
-
Tag
Creates a Tag with the given metadata.
- Parameters:
family
- the protocol familysrcIP
- the source IP addresssrcPort
- the source portdstIP
- the destination IP addressdstPort
- the destination port
-
-
Method Details
-
getFamily
-
getSourceAddress
-
getSourcePort
public int getSourcePort() -
getDestinationAddress
-
getDestinationPort
public int getDestinationPort() -
apply
Description copied from interface:ClientConnectionFactory.Decorator
Wraps the given
factory
.- Specified by:
apply
in interfaceClientConnectionFactory.Decorator
- Parameters:
factory
- the ClientConnectionFactory to wrap- Returns:
- the wrapping ClientConnectionFactory
-
equals
-
hashCode
public int hashCode()
-