public interface Attribute extends HttpData
InterfaceHttpData.HttpDataType
Modifier and Type | Method and Description |
---|---|
Attribute |
copy()
Creates a deep copy of this
ByteBufHolder . |
Attribute |
duplicate()
Duplicates this
ByteBufHolder . |
String |
getValue()
Returns the value of this HttpData.
|
Attribute |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
Attribute |
retain()
Increases the reference count by
1 . |
Attribute |
retain(int increment)
Increases the reference count by the specified
increment . |
Attribute |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
void |
setValue(String value)
Sets the value of this HttpData.
|
Attribute |
touch()
Records the current access location of this object for debugging purposes.
|
Attribute |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
addContent, checkSize, definedLength, delete, get, getByteBuf, getCharset, getChunk, getFile, getMaxSize, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSize
getHttpDataType, getName
compareTo
content
refCnt, release, release
String getValue() throws IOException
IOException
void setValue(String value) throws IOException
IOException
Attribute copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface HttpData
Attribute duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface HttpData
Attribute retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface HttpData
ByteBuf.retainedDuplicate()
Attribute replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface HttpData
Attribute retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface HttpData
retain
in interface InterfaceHttpData
retain
in interface ReferenceCounted
Attribute retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface HttpData
retain
in interface InterfaceHttpData
retain
in interface ReferenceCounted
Attribute touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface HttpData
touch
in interface InterfaceHttpData
touch
in interface ReferenceCounted
Attribute touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface HttpData
touch
in interface InterfaceHttpData
touch
in interface ReferenceCounted
Copyright © 2008–2017 The Netty Project. All rights reserved.