Class HAProxyTLV

  • All Implemented Interfaces:
    io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted
    Direct Known Subclasses:
    HAProxySSLTLV

    public class HAProxyTLV
    extends io.netty.buffer.DefaultByteBufHolder
    A Type-Length Value (TLV vector) that can be added to the PROXY protocol to include additional information like SSL information.
    See Also:
    HAProxySSLTLV
    • Constructor Detail

      • HAProxyTLV

        public HAProxyTLV​(byte typeByteValue,
                          io.netty.buffer.ByteBuf content)
        Creates a new HAProxyTLV
        Parameters:
        typeByteValue - the byteValue of the TLV. This is especially important if non-standard TLVs are used
        content - the raw content of the TLV
      • HAProxyTLV

        public HAProxyTLV​(HAProxyTLV.Type type,
                          io.netty.buffer.ByteBuf content)
        Creates a new HAProxyTLV
        Parameters:
        type - the HAProxyTLV.Type of the TLV
        content - the raw content of the TLV
    • Method Detail

      • typeByteValue

        public byte typeByteValue()
        Returns the type of the TLV as byte
      • copy

        public HAProxyTLV copy()
        Specified by:
        copy in interface io.netty.buffer.ByteBufHolder
        Overrides:
        copy in class io.netty.buffer.DefaultByteBufHolder
      • duplicate

        public HAProxyTLV duplicate()
        Specified by:
        duplicate in interface io.netty.buffer.ByteBufHolder
        Overrides:
        duplicate in class io.netty.buffer.DefaultByteBufHolder
      • retainedDuplicate

        public HAProxyTLV retainedDuplicate()
        Specified by:
        retainedDuplicate in interface io.netty.buffer.ByteBufHolder
        Overrides:
        retainedDuplicate in class io.netty.buffer.DefaultByteBufHolder
      • replace

        public HAProxyTLV replace​(io.netty.buffer.ByteBuf content)
        Specified by:
        replace in interface io.netty.buffer.ByteBufHolder
        Overrides:
        replace in class io.netty.buffer.DefaultByteBufHolder
      • retain

        public HAProxyTLV retain()
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.buffer.DefaultByteBufHolder
      • retain

        public HAProxyTLV retain​(int increment)
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.buffer.DefaultByteBufHolder
      • touch

        public HAProxyTLV touch()
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Overrides:
        touch in class io.netty.buffer.DefaultByteBufHolder
      • touch

        public HAProxyTLV touch​(Object hint)
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Overrides:
        touch in class io.netty.buffer.DefaultByteBufHolder
      • toString

        public String toString()
        Overrides:
        toString in class io.netty.buffer.DefaultByteBufHolder