Top Description Fields Constructors Methods
io.vertx.core.http.impl

pack-priv Class AssembledLastHttpContent

extends DefaultByteBufHolder
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, .ByteBufHolder, .DefaultByteBufHolder, io.netty.handler.codec.DecoderResult, io.netty.handler.codec.http.HttpHeaders, .LastHttpContent

Helper wrapper class which allows to assemble a ByteBuf and a HttpHeaders into one "packet" and so more efficient write it through the pipeline.
Author
Norman Maurer

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 LastHttpContent
public DecoderResult
decoderResult()

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

Returns the result of decoding this object.

public LastHttpContent
public DecoderResult
public LastHttpContent
public LastHttpContent
retain(int increment)

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http.LastHttpContent.retain, io.netty.buffer.ByteBufHolder.retain.

Increases the reference count by the specified increment.

public LastHttpContent
public LastHttpContent
public void
setDecoderResult(DecoderResult result)

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

Updates the result of decoding this object.

public AssembledLastHttpContent
touch()

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http.LastHttpContent.touch, io.netty.buffer.ByteBufHolder.touch.

Records the current access location of this object for debugging purposes.

public AssembledLastHttpContent
touch(Object hint)

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http.LastHttpContent.touch, io.netty.buffer.ByteBufHolder.touch.

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

public HttpHeaders
Inherited from io.netty.buffer.DefaultByteBufHolder:
contentcontentToStringequalshashCoderefCntreleasereleasetoString

Field Detail

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

Constructor Detail

AssembledLastHttpContentback to summary
pack-priv AssembledLastHttpContent(ByteBuf buf, HttpHeaders trailingHeaders)
AssembledLastHttpContentback to summary
pack-priv AssembledLastHttpContent(ByteBuf buf, HttpHeaders trailingHeaders, DecoderResult result)

Method Detail

copyback to summary
public LastHttpContent copy()

Overrides io.netty.buffer.DefaultByteBufHolder.copy.

Implements io.netty.handler.codec.http.LastHttpContent.copy, io.netty.buffer.ByteBufHolder.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()

Overrides io.netty.buffer.DefaultByteBufHolder.duplicate.

Implements io.netty.handler.codec.http.LastHttpContent.duplicate, io.netty.buffer.ByteBufHolder.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
replaceback to summary
public LastHttpContent replace(ByteBuf content)

Overrides io.netty.buffer.DefaultByteBufHolder.replace.

Implements io.netty.handler.codec.http.LastHttpContent.replace, io.netty.buffer.ByteBufHolder.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)

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http.LastHttpContent.retain, io.netty.buffer.ByteBufHolder.retain.

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

Increases the reference count by the specified increment.

Annotations
@Override
retainback to summary
public LastHttpContent retain()

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http.LastHttpContent.retain, io.netty.buffer.ByteBufHolder.retain.

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

Increases the reference count by 1.

Annotations
@Override
retainedDuplicateback to summary
public LastHttpContent retainedDuplicate()

Overrides io.netty.buffer.DefaultByteBufHolder.retainedDuplicate.

Implements io.netty.handler.codec.http.LastHttpContent.retainedDuplicate, io.netty.buffer.ByteBufHolder.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 AssembledLastHttpContent touch()

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http.LastHttpContent.touch, io.netty.buffer.ByteBufHolder.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 AssembledLastHttpContent touch(Object hint)

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http.LastHttpContent.touch, io.netty.buffer.ByteBufHolder.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