Class MixedAttribute
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.codec.http.multipart.AbstractMixedHttpData<Attribute>
io.netty.handler.codec.http.multipart.MixedAttribute
- All Implemented Interfaces:
ByteBufHolder, Attribute, HttpData, InterfaceHttpData, ReferenceCounted, Comparable<InterfaceHttpData>
Mixed implementation using both in Memory and in File with a limit of size
-
Nested Class Summary
Nested classes/interfaces inherited from interface InterfaceHttpData
InterfaceHttpData.HttpDataType -
Field Summary
Fields inherited from class AbstractMixedHttpData
baseDir, deleteOnExit, wrapped -
Constructor Summary
ConstructorsConstructorDescriptionMixedAttribute(String name, long limitSize) MixedAttribute(String name, long definedSize, long limitSize) MixedAttribute(String name, long definedSize, long limitSize, Charset charset) MixedAttribute(String name, long definedSize, long limitSize, Charset charset, String baseDir, boolean deleteOnExit) MixedAttribute(String name, long limitSize, Charset charset) MixedAttribute(String name, long limitSize, Charset charset, String baseDir, boolean deleteOnExit) MixedAttribute(String name, String value, long limitSize) MixedAttribute(String name, String value, long limitSize, Charset charset) MixedAttribute(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of thisByteBufHolder.Duplicates thisByteBufHolder.getValue()Returns the value of this HttpData.(package private) Attributeprivate static AttributemakeInitialAttributeFromValue(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit) Returns a newByteBufHolderwhich contains the specifiedcontent.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.Duplicates thisByteBufHolder.voidSets the value of this HttpData.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.Methods inherited from class AbstractMixedHttpData
addContent, checkSize, compareTo, content, deallocate, definedLength, delete, equals, get, getByteBuf, getCharset, getChunk, getFile, getHttpDataType, getMaxSize, getName, getString, getString, hashCode, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSize, toStringMethods inherited from class AbstractReferenceCounted
refCnt, release, release, setRefCntMethods inherited from interface ByteBufHolder
contentMethods inherited from interface Comparable
compareToMethods inherited from interface HttpData
addContent, checkSize, definedLength, delete, get, getByteBuf, getCharset, getChunk, getFile, getMaxSize, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSizeMethods inherited from interface InterfaceHttpData
getHttpDataType, getNameMethods inherited from interface ReferenceCounted
refCnt, release, release
-
Constructor Details
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
-
Method Details
-
makeInitialAttributeFromValue
-
getValue
Description copied from interface:AttributeReturns the value of this HttpData.- Specified by:
getValuein interfaceAttribute- Throws:
IOException
-
setValue
Description copied from interface:AttributeSets the value of this HttpData.- Specified by:
setValuein interfaceAttribute- Throws:
IOException
-
makeDiskData
Attribute makeDiskData()- Specified by:
makeDiskDatain classAbstractMixedHttpData<Attribute>
-
copy
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceAttribute- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceHttpData- Overrides:
copyin classAbstractMixedHttpData<Attribute>
-
duplicate
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceAttribute- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfaceHttpData- Overrides:
duplicatein classAbstractMixedHttpData<Attribute>
-
replace
Description copied from interface:ByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.- Specified by:
replacein interfaceAttribute- Specified by:
replacein interfaceByteBufHolder- Specified by:
replacein interfaceHttpData- Overrides:
replacein classAbstractMixedHttpData<Attribute>
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceAttribute- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceHttpData- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractMixedHttpData<Attribute>
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceAttribute- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceHttpData- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractMixedHttpData<Attribute>
-
retainedDuplicate
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceAttribute- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfaceHttpData- Overrides:
retainedDuplicatein classAbstractMixedHttpData<Attribute>- See Also:
-
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 interfaceAttribute- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceHttpData- Specified by:
touchin interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractMixedHttpData<Attribute>
-
touch
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 interfaceAttribute- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceHttpData- Specified by:
touchin interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractMixedHttpData<Attribute>
-