Package org.eclipse.jetty.client
Class ProxyProtocolClientConnectionFactory.V2.Tag
- java.lang.Object
-
- org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory.V2.Tag
-
- All Implemented Interfaces:
ClientConnectionFactory.Decorator
- Enclosing class:
- ProxyProtocolClientConnectionFactory.V2
@Deprecated(since="2021-05-27") public static class ProxyProtocolClientConnectionFactory.V2.Tag extends java.lang.Object implements ClientConnectionFactory.Decorator
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.PROXY protocol version 2 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 2 bytes specified by this metadata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProxyProtocolClientConnectionFactory.V2.Tag.Command
Deprecated.static class
ProxyProtocolClientConnectionFactory.V2.Tag.Family
Deprecated.static class
ProxyProtocolClientConnectionFactory.V2.Tag.Protocol
Deprecated.static class
ProxyProtocolClientConnectionFactory.V2.Tag.TLV
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static ProxyProtocolClientConnectionFactory.V2.Tag
LOCAL
Deprecated.The PROXY V2 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(java.lang.String srcIP, int srcPort)
Deprecated.Creates a Tag with the given source metadata.Tag(java.lang.String srcIP, int srcPort, java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV> tlvs)
Deprecated.Creates a Tag with the given source metadata and Type-Length-Value (TLV) objects.Tag(ProxyProtocolClientConnectionFactory.V2.Tag.Command command, ProxyProtocolClientConnectionFactory.V2.Tag.Family family, ProxyProtocolClientConnectionFactory.V2.Tag.Protocol protocol, java.lang.String srcIP, int srcPort, java.lang.String dstIP, int dstPort, java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV> tlvs)
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(java.lang.Object obj)
Deprecated.ProxyProtocolClientConnectionFactory.V2.Tag.Command
getCommand()
Deprecated.java.lang.String
getDestinationAddress()
Deprecated.int
getDestinationPort()
Deprecated.ProxyProtocolClientConnectionFactory.V2.Tag.Family
getFamily()
Deprecated.ProxyProtocolClientConnectionFactory.V2.Tag.Protocol
getProtocol()
Deprecated.java.lang.String
getSourceAddress()
Deprecated.int
getSourcePort()
Deprecated.java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV>
getTLVs()
Deprecated.int
hashCode()
Deprecated.
-
-
-
Field Detail
-
LOCAL
public static final ProxyProtocolClientConnectionFactory.V2.Tag LOCAL
Deprecated.The PROXY V2 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(java.lang.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
-
Tag
public Tag(java.lang.String srcIP, int srcPort, java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV> tlvs)
Deprecated.Creates a Tag with the given source metadata and Type-Length-Value (TLV) objects.
The destination metadata will be derived from the underlying EndPoint.
- Parameters:
srcIP
- the source IP addresssrcPort
- the source porttlvs
- the TLV objects
-
Tag
public Tag(ProxyProtocolClientConnectionFactory.V2.Tag.Command command, ProxyProtocolClientConnectionFactory.V2.Tag.Family family, ProxyProtocolClientConnectionFactory.V2.Tag.Protocol protocol, java.lang.String srcIP, int srcPort, java.lang.String dstIP, int dstPort, java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV> tlvs)
Deprecated.Creates a Tag with the given metadata.
- Parameters:
command
- the LOCAL or PROXY commandfamily
- the protocol familyprotocol
- the protocol typesrcIP
- the source IP addresssrcPort
- the source portdstIP
- the destination IP addressdstPort
- the destination porttlvs
- the TLV objects
-
-
Method Detail
-
getCommand
public ProxyProtocolClientConnectionFactory.V2.Tag.Command getCommand()
Deprecated.
-
getFamily
public ProxyProtocolClientConnectionFactory.V2.Tag.Family getFamily()
Deprecated.
-
getProtocol
public ProxyProtocolClientConnectionFactory.V2.Tag.Protocol getProtocol()
Deprecated.
-
getSourceAddress
public java.lang.String getSourceAddress()
Deprecated.
-
getSourcePort
public int getSourcePort()
Deprecated.
-
getDestinationAddress
public java.lang.String getDestinationAddress()
Deprecated.
-
getDestinationPort
public int getDestinationPort()
Deprecated.
-
getTLVs
public java.util.List<ProxyProtocolClientConnectionFactory.V2.Tag.TLV> getTLVs()
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
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-