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 voidaddValue(java.lang.String value)voidaddValue(java.lang.String value, int rank)intcompareTo(InterfaceHttpData o)intcompareTo(InternalAttribute o)protected voiddeallocate()Called onceAbstractReferenceCounted.refCnt()is equals 0.booleanequals(java.lang.Object o)InterfaceHttpData.HttpDataTypegetHttpDataType()java.lang.StringgetName()Returns the name of this InterfaceHttpData.inthashCode()InterfaceHttpDataretain()Increases the reference count by1.InterfaceHttpDataretain(int increment)Increases the reference count by the specifiedincrement.voidsetValue(java.lang.String value, int rank)intsize()ByteBuftoByteBuf()java.lang.StringtoString()InterfaceHttpDatatouch()Records the current access location of this object for debugging purposes.InterfaceHttpDatatouch(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:
getHttpDataTypein 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(InterfaceHttpData o)
- Specified by:
compareToin interfacejava.lang.Comparable<InterfaceHttpData>
-
compareTo
public int compareTo(InternalAttribute o)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
size
public int size()
-
toByteBuf
public ByteBuf toByteBuf()
-
getName
public java.lang.String getName()
Description copied from interface:InterfaceHttpDataReturns the name of this InterfaceHttpData.- Specified by:
getNamein interfaceInterfaceHttpData
-
deallocate
protected void deallocate()
Description copied from class:AbstractReferenceCountedCalled onceAbstractReferenceCounted.refCnt()is equals 0.- Specified by:
deallocatein classAbstractReferenceCounted
-
retain
public InterfaceHttpData retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
retain
public InterfaceHttpData retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
touch
public InterfaceHttpData 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 interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractReferenceCounted
-
touch
public InterfaceHttpData 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 interfaceInterfaceHttpData- Specified by:
touchin interfaceReferenceCounted
-
-