public class HAProxyTLV extends DefaultByteBufHolder
HAProxySSLTLV| Modifier and Type | Class and Description |
|---|---|
static class |
HAProxyTLV.Type
The registered types a TLV can have regarding the PROXY protocol 1.5 spec
|
| Constructor and Description |
|---|
HAProxyTLV(byte typeByteValue,
ByteBuf content)
Creates a new HAProxyTLV
|
HAProxyTLV(HAProxyTLV.Type type,
ByteBuf content)
Creates a new HAProxyTLV
|
| Modifier and Type | Method and Description |
|---|---|
HAProxyTLV |
copy()
Creates a deep copy of this
ByteBufHolder. |
HAProxyTLV |
duplicate()
Duplicates this
ByteBufHolder. |
HAProxyTLV |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
HAProxyTLV |
retain()
Increases the reference count by
1. |
HAProxyTLV |
retain(int increment)
Increases the reference count by the specified
increment. |
HAProxyTLV |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
String |
toString() |
HAProxyTLV |
touch()
Records the current access location of this object for debugging purposes.
|
HAProxyTLV |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
HAProxyTLV.Type |
type()
Returns the
HAProxyTLV.Type of this TLV |
byte |
typeByteValue()
Returns the type of the TLV as byte
|
content, contentToString, equals, hashCode, refCnt, release, releasepublic HAProxyTLV(byte typeByteValue,
ByteBuf content)
typeByteValue - the byteValue of the TLV. This is especially important if non-standard TLVs are usedcontent - the raw content of the TLVpublic HAProxyTLV(HAProxyTLV.Type type, ByteBuf content)
type - the HAProxyTLV.Type of the TLVcontent - the raw content of the TLVpublic HAProxyTLV.Type type()
HAProxyTLV.Type of this TLVpublic byte typeByteValue()
public HAProxyTLV copy()
DefaultByteBufHolderByteBufHolder.
This method calls replace(content().copy()) by default.
copy in interface ByteBufHoldercopy in class DefaultByteBufHolderpublic HAProxyTLV duplicate()
DefaultByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
This method calls replace(content().duplicate()) by default.
duplicate in interface ByteBufHolderduplicate in class DefaultByteBufHolderpublic HAProxyTLV retainedDuplicate()
DefaultByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
This method calls replace(content().retainedDuplicate()) by default.
retainedDuplicate in interface ByteBufHolderretainedDuplicate in class DefaultByteBufHolderByteBuf.retainedDuplicate()public HAProxyTLV replace(ByteBuf content)
DefaultByteBufHolderByteBufHolder which contains the specified content.
Override this method to return a new instance of this object whose content is set to the specified
content. The default implementation of DefaultByteBufHolder.copy(), DefaultByteBufHolder.duplicate() and
DefaultByteBufHolder.retainedDuplicate() invokes this method to create a copy.
replace in interface ByteBufHolderreplace in class DefaultByteBufHolderpublic HAProxyTLV retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic HAProxyTLV retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic HAProxyTLV touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic HAProxyTLV touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic String toString()
toString in class DefaultByteBufHolderCopyright © 2008–2025 The Netty Project. All rights reserved.