public interface Attribute extends HttpData
InterfaceHttpData.HttpDataType
限定符和类型 | 方法和说明 |
---|---|
Attribute |
copy()
Creates a deep copy of this
ByteBufHolder . |
Attribute |
duplicate()
Duplicates this
ByteBufHolder . |
java.lang.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(java.lang.String value)
Sets the value of this HttpData.
|
Attribute |
touch()
Records the current access location of this object for debugging purposes.
|
Attribute |
touch(java.lang.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
content
refCnt, release, release
java.lang.String getValue() throws java.io.IOException
java.io.IOException
void setValue(java.lang.String value) throws java.io.IOException
java.io.IOException
Attribute copy()
ByteBufHolder
ByteBufHolder
.copy
在接口中 ByteBufHolder
copy
在接口中 HttpData
Attribute duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
在接口中 ByteBufHolder
duplicate
在接口中 HttpData
Attribute retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
在接口中 ByteBufHolder
retainedDuplicate
在接口中 HttpData
ByteBuf.retainedDuplicate()
Attribute replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
在接口中 ByteBufHolder
replace
在接口中 HttpData
Attribute retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpData
retain
在接口中 InterfaceHttpData
retain
在接口中 ReferenceCounted
Attribute retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpData
retain
在接口中 InterfaceHttpData
retain
在接口中 ReferenceCounted
Attribute touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 ByteBufHolder
touch
在接口中 HttpData
touch
在接口中 InterfaceHttpData
touch
在接口中 ReferenceCounted
Attribute touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 ByteBufHolder
touch
在接口中 HttpData
touch
在接口中 InterfaceHttpData
touch
在接口中 ReferenceCounted