Top Fields Constructors Methods
io.netty.handler.codec.http

pack-priv final Class ComposedLastHttpContent

extends Object
implements LastHttpContent
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http.LastHttpContent, io.netty.handler.codec.http.HttpContent, io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.DecoderResultProvider
Imports
io.netty.buffer.ByteBuf, .Unpooled, io.netty.handler.codec.DecoderResult

Field Summary

Modifier and TypeField and Description
private DecoderResult
private final HttpHeaders

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
content()

Implements io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.
public LastHttpContent
copy()

Implements io.netty.handler.codec.http.LastHttpContent.copy.

Creates a deep copy of this ByteBufHolder.
public DecoderResult
decoderResult()

Implements io.netty.handler.codec.DecoderResultProvider.decoderResult.

Returns the result of decoding this object.
public LastHttpContent
public DecoderResult
public int
refCnt()

Implements io.netty.util.ReferenceCounted.refCnt.

Returns the reference count of this object.
public boolean
release()

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
public boolean
release(int decrement)

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
public LastHttpContent
replace(ByteBuf content)

Implements io.netty.handler.codec.http.LastHttpContent.replace.

Returns a new ByteBufHolder which contains the specified content.
public LastHttpContent
retain(int increment)

Implements io.netty.handler.codec.http.LastHttpContent.retain.

Increases the reference count by the specified increment.
public LastHttpContent
retain()

Implements io.netty.handler.codec.http.LastHttpContent.retain.

Increases the reference count by 1.
public LastHttpContent
public void
setDecoderResult(DecoderResult result)

Implements io.netty.handler.codec.DecoderResultProvider.setDecoderResult.

Updates the result of decoding this object.
public LastHttpContent
touch()

Implements io.netty.handler.codec.http.LastHttpContent.touch.

Records the current access location of this object for debugging purposes.
public LastHttpContent
touch(Object hint)

Implements io.netty.handler.codec.http.LastHttpContent.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
public HttpHeaders
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultback to summary
private DecoderResult result
trailingHeadersback to summary
private final HttpHeaders trailingHeaders

Constructor Detail

ComposedLastHttpContentback to summary
pack-priv ComposedLastHttpContent(HttpHeaders trailingHeaders)
ComposedLastHttpContentback to summary
pack-priv ComposedLastHttpContent(HttpHeaders trailingHeaders, DecoderResult result)

Method Detail

contentback to summary
public ByteBuf content()

Implements io.netty.buffer.ByteBufHolder.content.

Doc from io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.

Annotations
@Override
copyback to summary
public LastHttpContent copy()

Implements io.netty.handler.codec.http.LastHttpContent.copy.

Doc from io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
decoderResultback to summary
public DecoderResult decoderResult()

Implements io.netty.handler.codec.DecoderResultProvider.decoderResult.

Doc from io.netty.handler.codec.DecoderResultProvider.decoderResult.

Returns the result of decoding this object.

Annotations
@Override
duplicateback to summary
public LastHttpContent duplicate()

Implements io.netty.handler.codec.http.LastHttpContent.duplicate.

Doc from io.netty.buffer.ByteBufHolder.duplicate.

Duplicates this ByteBufHolder. Be aware that this will not automatically call retain().

Annotations
@Override
getDecoderResultback to summary
public DecoderResult getDecoderResult()

Implements io.netty.handler.codec.http.HttpObject.getDecoderResult.

Annotations
@Override
refCntback to summary
public int refCnt()

Implements io.netty.util.ReferenceCounted.refCnt.

Doc from io.netty.util.ReferenceCounted.refCnt.

Returns the reference count of this object. If 0, it means this object has been deallocated.

Annotations
@Override
releaseback to summary
public boolean release()

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
releaseback to summary
public boolean release(int decrement)

Implements io.netty.util.ReferenceCounted.release.

Doc from io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
replaceback to summary
public LastHttpContent replace(ByteBuf content)

Implements io.netty.handler.codec.http.LastHttpContent.replace.

Doc from io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
retainback to summary
public LastHttpContent retain(int increment)

Implements io.netty.handler.codec.http.LastHttpContent.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainback to summary
public LastHttpContent retain()

Implements io.netty.handler.codec.http.LastHttpContent.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainedDuplicateback to summary
public LastHttpContent retainedDuplicate()

Implements io.netty.handler.codec.http.LastHttpContent.retainedDuplicate.

Doc from io.netty.buffer.ByteBufHolder.retainedDuplicate.

Duplicates this ByteBufHolder. This method returns a retained duplicate unlike duplicate().

Annotations
@Override
setDecoderResultback to summary
public void setDecoderResult(DecoderResult result)

Implements io.netty.handler.codec.DecoderResultProvider.setDecoderResult.

Doc from io.netty.handler.codec.DecoderResultProvider.setDecoderResult.

Updates 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.

Annotations
@Override
touchback to summary
public LastHttpContent touch()

Implements io.netty.handler.codec.http.LastHttpContent.touch.

Doc from io.netty.util.ReferenceCounted.touch.

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 via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public LastHttpContent touch(Object hint)

Implements io.netty.handler.codec.http.LastHttpContent.touch.

Doc from io.netty.util.ReferenceCounted.touch.

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 via ResourceLeakDetector.

Annotations
@Override
trailingHeadersback to summary
public HttpHeaders trailingHeaders()

Implements io.netty.handler.codec.http.LastHttpContent.trailingHeaders.

Annotations
@Override