Package io.netty.handler.codec.http
Class HttpObjectAggregator.AggregatedFullHttpMessage
- java.lang.Object
-
- io.netty.handler.codec.http.HttpObjectAggregator.AggregatedFullHttpMessage
-
- All Implemented Interfaces:
ByteBufHolder,DecoderResultProvider,FullHttpMessage,HttpContent,HttpMessage,HttpObject,LastHttpContent,ReferenceCounted
- Direct Known Subclasses:
HttpObjectAggregator.AggregatedFullHttpRequest,HttpObjectAggregator.AggregatedFullHttpResponse
- Enclosing class:
- HttpObjectAggregator
private abstract static class HttpObjectAggregator.AggregatedFullHttpMessage extends java.lang.Object implements FullHttpMessage
-
-
Field Summary
Fields Modifier and Type Field Description private ByteBufcontentprotected HttpMessagemessageprivate HttpHeaderstrailingHeaders-
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT
-
-
Constructor Summary
Constructors Constructor Description AggregatedFullHttpMessage(HttpMessage message, ByteBuf content, HttpHeaders trailingHeaders)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ByteBufcontent()Return the data which is held by thisByteBufHolder.abstract FullHttpMessagecopy()Creates a deep copy of thisByteBufHolder.DecoderResultdecoderResult()Returns the result of decoding this object.abstract FullHttpMessageduplicate()Duplicates thisByteBufHolder.DecoderResultgetDecoderResult()HttpVersiongetProtocolVersion()HttpHeadersheaders()Returns the headers of this message.HttpVersionprotocolVersion()Returns the protocol version of thisHttpMessageintrefCnt()Returns the reference count of this object.booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.booleanrelease(int decrement)Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.FullHttpMessageretain()Increases the reference count by1.FullHttpMessageretain(int increment)Increases the reference count by the specifiedincrement.abstract FullHttpMessageretainedDuplicate()Duplicates thisByteBufHolder.voidsetDecoderResult(DecoderResult result)Updates the result of decoding this object.FullHttpMessagesetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessage(package private) voidsetTrailingHeaders(HttpHeaders trailingHeaders)FullHttpMessagetouch()Records the current access location of this object for debugging purposes.FullHttpMessagetouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.HttpHeaderstrailingHeaders()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.http.FullHttpMessage
replace
-
-
-
-
Field Detail
-
message
protected final HttpMessage message
-
content
private final ByteBuf content
-
trailingHeaders
private HttpHeaders trailingHeaders
-
-
Constructor Detail
-
AggregatedFullHttpMessage
AggregatedFullHttpMessage(HttpMessage message, ByteBuf content, HttpHeaders trailingHeaders)
-
-
Method Detail
-
trailingHeaders
public HttpHeaders trailingHeaders()
- Specified by:
trailingHeadersin interfaceLastHttpContent
-
setTrailingHeaders
void setTrailingHeaders(HttpHeaders trailingHeaders)
-
getProtocolVersion
public HttpVersion getProtocolVersion()
- Specified by:
getProtocolVersionin interfaceHttpMessage
-
protocolVersion
public HttpVersion protocolVersion()
Description copied from interface:HttpMessageReturns the protocol version of thisHttpMessage- Specified by:
protocolVersionin interfaceHttpMessage
-
setProtocolVersion
public FullHttpMessage setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
headers
public HttpHeaders headers()
Description copied from interface:HttpMessageReturns the headers of this message.- Specified by:
headersin interfaceHttpMessage
-
decoderResult
public DecoderResult decoderResult()
Description copied from interface:DecoderResultProviderReturns the result of decoding this object.- Specified by:
decoderResultin interfaceDecoderResultProvider
-
getDecoderResult
public DecoderResult getDecoderResult()
- Specified by:
getDecoderResultin interfaceHttpObject
-
setDecoderResult
public void setDecoderResult(DecoderResult result)
Description copied from interface:DecoderResultProviderUpdates the result of decoding this object. This method is supposed to be invoked by a decoder. Do not call this method unless you know what you are doing.- Specified by:
setDecoderResultin interfaceDecoderResultProvider
-
content
public ByteBuf content()
Description copied from interface:ByteBufHolderReturn the data which is held by thisByteBufHolder.- Specified by:
contentin interfaceByteBufHolder
-
refCnt
public int refCnt()
Description copied from interface:ReferenceCountedReturns the reference count of this object. If0, it means this object has been deallocated.- Specified by:
refCntin interfaceReferenceCounted
-
retain
public FullHttpMessage retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceFullHttpMessage- Specified by:
retainin interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted
-
retain
public FullHttpMessage retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceFullHttpMessage- Specified by:
retainin interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted
-
touch
public FullHttpMessage 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 interfaceByteBufHolder- Specified by:
touchin interfaceFullHttpMessage- Specified by:
touchin interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted
-
touch
public FullHttpMessage 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 interfaceByteBufHolder- Specified by:
touchin interfaceFullHttpMessage- Specified by:
touchin interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted
-
release
public boolean release()
Description copied from interface:ReferenceCountedDecreases the reference count by1and deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
release
public boolean release(int decrement)
Description copied from interface:ReferenceCountedDecreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
copy
public abstract FullHttpMessage copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceFullHttpMessage- Specified by:
copyin interfaceHttpContent- Specified by:
copyin interfaceLastHttpContent
-
duplicate
public abstract FullHttpMessage duplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfaceFullHttpMessage- Specified by:
duplicatein interfaceHttpContent- Specified by:
duplicatein interfaceLastHttpContent
-
retainedDuplicate
public abstract FullHttpMessage retainedDuplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfaceFullHttpMessage- Specified by:
retainedDuplicatein interfaceHttpContent- Specified by:
retainedDuplicatein interfaceLastHttpContent- See Also:
ByteBuf.retainedDuplicate()
-
-