Class ProxyProtocolClientConnectionFactory.V1.Tag

java.lang.Object
org.eclipse.jetty.client.ProxyProtocolClientConnectionFactory.V1.Tag
All Implemented Interfaces:
org.eclipse.jetty.io.ClientConnectionFactory.Decorator
Enclosing class:
ProxyProtocolClientConnectionFactory.V1

public static class ProxyProtocolClientConnectionFactory.V1.Tag extends Object implements org.eclipse.jetty.io.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 Details

  • Constructor Details

    • Tag

      public Tag()

      Creates a Tag whose metadata will be derived from the underlying EndPoint.

    • Tag

      public Tag(String srcIP, int srcPort)

      Creates a Tag with the given source metadata.

      The destination metadata will be derived from the underlying EndPoint.

      Parameters:
      srcIP - the source IP address
      srcPort - the source port
    • Tag

      public Tag(String family, String srcIP, int srcPort, String dstIP, int dstPort)

      Creates a Tag with the given metadata.

      Parameters:
      family - the protocol family
      srcIP - the source IP address
      srcPort - the source port
      dstIP - the destination IP address
      dstPort - the destination port
  • Method Details

    • getFamily

      public String getFamily()
    • getSourceAddress

      public String getSourceAddress()
    • getSourcePort

      public int getSourcePort()
    • getDestinationAddress

      public String getDestinationAddress()
    • getDestinationPort

      public int getDestinationPort()
    • apply

      public org.eclipse.jetty.io.ClientConnectionFactory apply(org.eclipse.jetty.io.ClientConnectionFactory factory)
      Specified by:
      apply in interface org.eclipse.jetty.io.ClientConnectionFactory.Decorator
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object