Interface Attribute
-
- All Superinterfaces:
ByteBufHolder,java.lang.Comparable<InterfaceHttpData>,HttpData,InterfaceHttpData,ReferenceCounted
- All Known Implementing Classes:
DiskAttribute,MemoryAttribute,MixedAttribute
public interface Attribute extends HttpData
Attribute interface
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.handler.codec.http.multipart.InterfaceHttpData
InterfaceHttpData.HttpDataType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attributecopy()Creates a deep copy of thisByteBufHolder.Attributeduplicate()Duplicates thisByteBufHolder.java.lang.StringgetValue()Returns the value of this HttpData.Attributereplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.Attributeretain()Increases the reference count by1.Attributeretain(int increment)Increases the reference count by the specifiedincrement.AttributeretainedDuplicate()Duplicates thisByteBufHolder.voidsetValue(java.lang.String value)Sets the value of this HttpData.Attributetouch()Records the current access location of this object for debugging purposes.Attributetouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.-
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
-
Methods inherited from interface io.netty.handler.codec.http.multipart.HttpData
addContent, checkSize, definedLength, delete, get, getByteBuf, getCharset, getChunk, getFile, getMaxSize, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSize
-
Methods inherited from interface io.netty.handler.codec.http.multipart.InterfaceHttpData
getHttpDataType, getName
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Method Detail
-
getValue
java.lang.String getValue() throws java.io.IOExceptionReturns the value of this HttpData.- Throws:
java.io.IOException
-
setValue
void setValue(java.lang.String value) throws java.io.IOExceptionSets the value of this HttpData.- Throws:
java.io.IOException
-
copy
Attribute copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceHttpData
-
duplicate
Attribute duplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfaceHttpData
-
retainedDuplicate
Attribute retainedDuplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfaceHttpData- See Also:
ByteBuf.retainedDuplicate()
-
replace
Attribute replace(ByteBuf content)
Description copied from interface:ByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.- Specified by:
replacein interfaceByteBufHolder- Specified by:
replacein interfaceHttpData
-
retain
Attribute retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceHttpData- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted
-
retain
Attribute retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceHttpData- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted
-
touch
Attribute touch()
Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceHttpData- Specified by:
touchin interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted
-
touch
Attribute touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceHttpData- Specified by:
touchin interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted
-
-