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

public Interface LastHttpContent

extends HttpContent
Known Direct Subinterfaces
io.netty.handler.codec.http.FullHttpMessage
Known Direct Implementers
io.netty.handler.codec.http.ComposedLastHttpContent, io.netty.handler.codec.http.DefaultLastHttpContent
Imports
io.netty.buffer.ByteBuf, .Unpooled, io.netty.handler.codec.DecoderResult

The last HttpContent which has trailing headers.

Field Summary

Modifier and TypeField and Description
public static final LastHttpContent
EMPTY_LAST_CONTENT

The 'end of content' marker in chunked encoding.

Method Summary

Modifier and TypeMethod and Description
public LastHttpContent
copy()

Redeclares io.netty.handler.codec.http.HttpContent.copy.

Creates a deep copy of this ByteBufHolder.
public LastHttpContent
public LastHttpContent
replace(ByteBuf content)

Redeclares io.netty.handler.codec.http.HttpContent.replace.

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

Redeclares io.netty.handler.codec.http.HttpContent.retain.

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

Redeclares io.netty.handler.codec.http.HttpContent.retain.

Increases the reference count by 1.
public LastHttpContent
public LastHttpContent
touch()

Redeclares io.netty.handler.codec.http.HttpContent.touch.

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

Redeclares io.netty.handler.codec.http.HttpContent.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
public HttpHeaders

Field Detail

EMPTY_LAST_CONTENTback to summary
public static final LastHttpContent EMPTY_LAST_CONTENT

The 'end of content' marker in chunked encoding.

Method Detail

copyback to summary
public LastHttpContent copy()

Redeclares io.netty.handler.codec.http.HttpContent.copy.

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

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
duplicateback to summary
public LastHttpContent duplicate()

Redeclares io.netty.handler.codec.http.HttpContent.duplicate.

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

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

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

Redeclares io.netty.handler.codec.http.HttpContent.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)

Redeclares io.netty.handler.codec.http.HttpContent.retain.

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

Increases the reference count by the specified increment.

Annotations
@Override
retainback to summary
public LastHttpContent retain()

Redeclares io.netty.handler.codec.http.HttpContent.retain.

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

Increases the reference count by 1.

Annotations
@Override
retainedDuplicateback to summary
public LastHttpContent retainedDuplicate()

Redeclares io.netty.handler.codec.http.HttpContent.retainedDuplicate.

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

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

Annotations
@Override
touchback to summary
public LastHttpContent touch()

Redeclares io.netty.handler.codec.http.HttpContent.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)

Redeclares io.netty.handler.codec.http.HttpContent.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()