Package io.netty.handler.codec.haproxy
Class HAProxyTLV
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- io.netty.handler.codec.haproxy.HAProxyTLV
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder,io.netty.util.ReferenceCounted
- Direct Known Subclasses:
HAProxySSLTLV
public class HAProxyTLV extends io.netty.buffer.DefaultByteBufHolderA Type-Length Value (TLV vector) that can be added to the PROXY protocol to include additional information like SSL information.- See Also:
HAProxySSLTLV
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHAProxyTLV.TypeThe registered types a TLV can have regarding the PROXY protocol 1.5 spec
-
Constructor Summary
Constructors Constructor Description HAProxyTLV(byte typeByteValue, io.netty.buffer.ByteBuf content)Creates a new HAProxyTLVHAProxyTLV(HAProxyTLV.Type type, io.netty.buffer.ByteBuf content)Creates a new HAProxyTLV
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HAProxyTLVcopy()HAProxyTLVduplicate()HAProxyTLVreplace(io.netty.buffer.ByteBuf content)HAProxyTLVretain()HAProxyTLVretain(int increment)HAProxyTLVretainedDuplicate()StringtoString()HAProxyTLVtouch()HAProxyTLVtouch(Object hint)HAProxyTLV.Typetype()Returns theHAProxyTLV.Typeof this TLVbytetypeByteValue()Returns the type of the TLV as byte
-
-
-
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 usedcontent- the raw content of the TLV
-
HAProxyTLV
public HAProxyTLV(HAProxyTLV.Type type, io.netty.buffer.ByteBuf content)
Creates a new HAProxyTLV- Parameters:
type- theHAProxyTLV.Typeof the TLVcontent- the raw content of the TLV
-
-
Method Detail
-
type
public HAProxyTLV.Type type()
Returns theHAProxyTLV.Typeof this TLV
-
typeByteValue
public byte typeByteValue()
Returns the type of the TLV as byte
-
copy
public HAProxyTLV copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Overrides:
copyin classio.netty.buffer.DefaultByteBufHolder
-
duplicate
public HAProxyTLV duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Overrides:
duplicatein classio.netty.buffer.DefaultByteBufHolder
-
retainedDuplicate
public HAProxyTLV retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Overrides:
retainedDuplicatein classio.netty.buffer.DefaultByteBufHolder
-
replace
public HAProxyTLV replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Overrides:
replacein classio.netty.buffer.DefaultByteBufHolder
-
retain
public HAProxyTLV retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.buffer.DefaultByteBufHolder
-
retain
public HAProxyTLV retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.buffer.DefaultByteBufHolder
-
touch
public HAProxyTLV touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classio.netty.buffer.DefaultByteBufHolder
-
touch
public HAProxyTLV touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classio.netty.buffer.DefaultByteBufHolder
-
toString
public String toString()
- Overrides:
toStringin classio.netty.buffer.DefaultByteBufHolder
-
-