Class ProxyProtocolClientConnectionFactory.V1.Tag

    • Constructor Detail

      • Tag

        public Tag()

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

      • Tag

        public Tag​(java.lang.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​(java.lang.String family,
                   java.lang.String srcIP,
                   int srcPort,
                   java.lang.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 Detail

      • getFamily

        public java.lang.String getFamily()
      • getSourceAddress

        public java.lang.String getSourceAddress()
      • getSourcePort

        public int getSourcePort()
      • getDestinationAddress

        public java.lang.String getDestinationAddress()
      • getDestinationPort

        public int getDestinationPort()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object