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
@Deprecated(since="2021-05-27") public static class ProxyProtocolClientConnectionFactory.V1.Tag extends Object implements ClientConnectionFactory.Decorator
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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
Fields Modifier and Type Field Description static ProxyProtocolClientConnectionFactory.V1.Tag
UNKNOWN
Deprecated.The PROXY V1 Tag typically used to "ping" the server.
-
Constructor Summary
Constructors Constructor Description Tag()
Deprecated.Creates a Tag whose metadata will be derived from the underlying EndPoint.Tag(String srcIP, int srcPort)
Deprecated.Creates a Tag with the given source metadata.Tag(String family, String srcIP, int srcPort, String dstIP, int dstPort)
Deprecated.Creates a Tag with the given metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientConnectionFactory
apply(ClientConnectionFactory factory)
Deprecated.Wraps the givenfactory
.boolean
equals(Object obj)
Deprecated.String
getDestinationAddress()
Deprecated.int
getDestinationPort()
Deprecated.String
getFamily()
Deprecated.String
getSourceAddress()
Deprecated.int
getSourcePort()
Deprecated.int
hashCode()
Deprecated.
-
-
-
Field Detail
-
UNKNOWN
public static final ProxyProtocolClientConnectionFactory.V1.Tag UNKNOWN
Deprecated.The PROXY V1 Tag typically used to "ping" the server.
-
-
Constructor Detail
-
Tag
public Tag()
Deprecated.Creates a Tag whose metadata will be derived from the underlying EndPoint.
-
Tag
public Tag(String srcIP, int srcPort)
Deprecated.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
-
-
Method Detail
-
getFamily
public String getFamily()
Deprecated.
-
getSourceAddress
public String getSourceAddress()
Deprecated.
-
getSourcePort
public int getSourcePort()
Deprecated.
-
getDestinationAddress
public String getDestinationAddress()
Deprecated.
-
getDestinationPort
public int getDestinationPort()
Deprecated.
-
apply
public ClientConnectionFactory apply(ClientConnectionFactory factory)
Deprecated.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
-
-