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>
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 InterfaceHttpData
InterfaceHttpData.HttpDataType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(java.lang.String value) voidaddValue(java.lang.String value, int rank) intintprotected voidCalled onceAbstractReferenceCounted.refCnt()is equals 0.booleanequals(java.lang.Object o) java.lang.StringgetName()Returns the name of this InterfaceHttpData.inthashCode()retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.voidsetValue(java.lang.String value, int rank) intsize()java.lang.StringtoString()touch()Records the current access location of this object for debugging purposes.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 AbstractReferenceCounted
refCnt, release, release, setRefCntMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ReferenceCounted
refCnt, release, release
-
Field Details
-
value
-
charset
private final java.nio.charset.Charset charset -
size
private int size
-
-
Constructor Details
-
InternalAttribute
InternalAttribute(java.nio.charset.Charset charset)
-
-
Method Details
-
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
- Specified by:
compareToin interfacejava.lang.Comparable<InterfaceHttpData>
-
compareTo
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
size
public int size() -
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
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceInterfaceHttpData- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
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
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
-