Class InternalAttribute
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- io.netty.handler.codec.http.multipart.InternalAttribute
-
- All Implemented Interfaces:
InterfaceHttpData
,ReferenceCounted
,java.lang.Comparable<InterfaceHttpData>
final class InternalAttribute extends AbstractReferenceCounted implements InterfaceHttpData
This Attribute is only for Encoder use to insert special command between object if needed (like Multipart Mixed mode)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.handler.codec.http.multipart.InterfaceHttpData
InterfaceHttpData.HttpDataType
-
-
Constructor Summary
Constructors Constructor Description InternalAttribute(java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(java.lang.String value)
void
addValue(java.lang.String value, int rank)
int
compareTo(InterfaceHttpData o)
int
compareTo(InternalAttribute o)
protected void
deallocate()
Called onceAbstractReferenceCounted.refCnt()
is equals 0.boolean
equals(java.lang.Object o)
InterfaceHttpData.HttpDataType
getHttpDataType()
java.lang.String
getName()
Returns the name of this InterfaceHttpData.int
hashCode()
InterfaceHttpData
retain()
Increases the reference count by1
.InterfaceHttpData
retain(int increment)
Increases the reference count by the specifiedincrement
.void
setValue(java.lang.String value, int rank)
int
size()
ByteBuf
toByteBuf()
java.lang.String
toString()
InterfaceHttpData
touch()
Records the current access location of this object for debugging purposes.InterfaceHttpData
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging purposes.-
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.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Field Detail
-
value
private final java.util.List<ByteBuf> value
-
charset
private final java.nio.charset.Charset charset
-
size
private int size
-
-
Method Detail
-
getHttpDataType
public InterfaceHttpData.HttpDataType getHttpDataType()
- Specified by:
getHttpDataType
in interfaceInterfaceHttpData
- Returns:
- The HttpDataType
-
addValue
public void addValue(java.lang.String value)
-
addValue
public void addValue(java.lang.String value, int rank)
-
setValue
public void setValue(java.lang.String value, int rank)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(InterfaceHttpData o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<InterfaceHttpData>
-
compareTo
public int compareTo(InternalAttribute o)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
size
public int size()
-
toByteBuf
public ByteBuf toByteBuf()
-
getName
public java.lang.String getName()
Description copied from interface:InterfaceHttpData
Returns the name of this InterfaceHttpData.- Specified by:
getName
in interfaceInterfaceHttpData
-
deallocate
protected void deallocate()
Description copied from class:AbstractReferenceCounted
Called onceAbstractReferenceCounted.refCnt()
is equals 0.- Specified by:
deallocate
in classAbstractReferenceCounted
-
retain
public InterfaceHttpData retain()
Description copied from interface:ReferenceCounted
Increases the reference count by1
.- Specified by:
retain
in interfaceInterfaceHttpData
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractReferenceCounted
-
retain
public InterfaceHttpData retain(int increment)
Description copied from interface:ReferenceCounted
Increases the reference count by the specifiedincrement
.- Specified by:
retain
in interfaceInterfaceHttpData
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractReferenceCounted
-
touch
public InterfaceHttpData 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 interfaceInterfaceHttpData
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractReferenceCounted
-
touch
public InterfaceHttpData touch(java.lang.Object hint)
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 interfaceInterfaceHttpData
- Specified by:
touch
in interfaceReferenceCounted
-
-