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 io.netty.handler.codec.http.multipart.InterfaceHttpData
InterfaceHttpData.HttpDataType
-
Field Summary
Fields inherited from class io.netty.handler.codec.http.multipart.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) Attribute
private static Attribute
makeInitialAttributeFromValue
(String name, String value, long limitSize, Charset charset, String baseDir, boolean deleteOnExit) Returns a newByteBufHolder
which contains the specifiedcontent
.retain()
Increases the reference count by1
.retain
(int increment) Increases the reference count by the specifiedincrement
.Duplicates thisByteBufHolder
.void
Sets 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 io.netty.handler.codec.http.multipart.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, toString
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCnt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
Methods inherited from interface java.lang.Comparable
compareTo
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
-
Constructor Details
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
MixedAttribute
-
-
Method Details
-
makeInitialAttributeFromValue
-
getValue
Description copied from interface:Attribute
Returns the value of this HttpData.- Specified by:
getValue
in interfaceAttribute
- Throws:
IOException
-
setValue
Description copied from interface:Attribute
Sets the value of this HttpData.- Specified by:
setValue
in interfaceAttribute
- Throws:
IOException
-
makeDiskData
Attribute makeDiskData()- Specified by:
makeDiskData
in classAbstractMixedHttpData<Attribute>
-
copy
Description copied from interface:ByteBufHolder
Creates a deep copy of thisByteBufHolder
.- Specified by:
copy
in interfaceAttribute
- Specified by:
copy
in interfaceByteBufHolder
- Specified by:
copy
in interfaceHttpData
- Overrides:
copy
in classAbstractMixedHttpData<Attribute>
-
duplicate
Description copied from interface:ByteBufHolder
Duplicates thisByteBufHolder
. Be aware that this will not automatically callByteBufHolder.retain()
.- Specified by:
duplicate
in interfaceAttribute
- Specified by:
duplicate
in interfaceByteBufHolder
- Specified by:
duplicate
in interfaceHttpData
- Overrides:
duplicate
in classAbstractMixedHttpData<Attribute>
-
replace
Description copied from interface:ByteBufHolder
Returns a newByteBufHolder
which contains the specifiedcontent
.- Specified by:
replace
in interfaceAttribute
- Specified by:
replace
in interfaceByteBufHolder
- Specified by:
replace
in interfaceHttpData
- Overrides:
replace
in classAbstractMixedHttpData<Attribute>
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by1
.- Specified by:
retain
in interfaceAttribute
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceHttpData
- Specified by:
retain
in interfaceInterfaceHttpData
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractMixedHttpData<Attribute>
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by the specifiedincrement
.- Specified by:
retain
in interfaceAttribute
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceHttpData
- Specified by:
retain
in interfaceInterfaceHttpData
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractMixedHttpData<Attribute>
-
retainedDuplicate
Description copied from interface:ByteBufHolder
Duplicates thisByteBufHolder
. This method returns a retained duplicate unlikeByteBufHolder.duplicate()
.- Specified by:
retainedDuplicate
in interfaceAttribute
- Specified by:
retainedDuplicate
in interfaceByteBufHolder
- Specified by:
retainedDuplicate
in interfaceHttpData
- Overrides:
retainedDuplicate
in classAbstractMixedHttpData<Attribute>
- See Also:
-
touch
Description copied from interface:ReferenceCounted
Records 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:
touch
in interfaceAttribute
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceHttpData
- Specified by:
touch
in interfaceInterfaceHttpData
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractMixedHttpData<Attribute>
-
touch
Description copied from interface:ReferenceCounted
Records 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:
touch
in interfaceAttribute
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceHttpData
- Specified by:
touch
in interfaceInterfaceHttpData
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractMixedHttpData<Attribute>
-