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

pack-priv Class AssembledFullHttpResponse

extends AssembledHttpResponse
implements FullHttpResponse
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http.FullHttpResponse, io.netty.handler.codec.http.FullHttpMessage, 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, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpResponse
Imports
io.netty.buffer.ByteBuf, io.netty.handler.codec.http.*

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

Field Summary

Modifier and TypeField and Description
private HttpHeaders

Constructor Summary

AccessConstructor and Description
public
AssembledFullHttpResponse(boolean head, HttpVersion version, HttpResponseStatus status, HttpHeaders headers, ByteBuf buf, HttpHeaders trailingHeaders)

Method Summary

Modifier and TypeMethod and Description
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
public AssembledFullHttpResponse
touch()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.touch.

Implements io.netty.handler.codec.http.FullHttpResponse.touch, io.netty.handler.codec.http.HttpContent.touch.

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

public AssembledFullHttpResponse
touch(Object hint)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.touch.

Implements io.netty.handler.codec.http.FullHttpResponse.touch, 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
Inherited from io.vertx.core.http.impl.AssembledHttpResponse:
contentdecoderResultgetDecoderResultgetProtocolVersiongetStatusheadheadersprotocolVersionrefCntreleasereleasesetDecoderResultstatus

Field Detail

trailingHeadersback to summary
private HttpHeaders trailingHeaders

Constructor Detail

AssembledFullHttpResponseback to summary
public AssembledFullHttpResponse(boolean head, HttpVersion version, HttpResponseStatus status, HttpHeaders headers, ByteBuf buf, HttpHeaders trailingHeaders)

Method Detail

copyback to summary
public AssembledFullHttpResponse copy()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.copy.

Implements io.netty.handler.codec.http.FullHttpResponse.copy, 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 AssembledFullHttpResponse duplicate()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.duplicate.

Implements io.netty.handler.codec.http.FullHttpResponse.duplicate, 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 AssembledFullHttpResponse replace(ByteBuf content)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.replace.

Implements io.netty.handler.codec.http.FullHttpResponse.replace, 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 AssembledFullHttpResponse retain(int increment)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.retain.

Implements io.netty.handler.codec.http.FullHttpResponse.retain, 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 AssembledFullHttpResponse retain()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.retain.

Implements io.netty.handler.codec.http.FullHttpResponse.retain, 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 AssembledFullHttpResponse retainedDuplicate()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.retainedDuplicate.

Implements io.netty.handler.codec.http.FullHttpResponse.retainedDuplicate, 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
setProtocolVersionback to summary
public AssembledFullHttpResponse setProtocolVersion(HttpVersion version)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.setProtocolVersion.

Implements io.netty.handler.codec.http.FullHttpResponse.setProtocolVersion, io.netty.handler.codec.http.HttpResponse.setProtocolVersion.

Doc from io.netty.handler.codec.http.HttpMessage.setProtocolVersion.

Set the protocol version of this HttpMessage

Annotations
@Override
setStatusback to summary
public AssembledFullHttpResponse setStatus(HttpResponseStatus status)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.setStatus.

Implements io.netty.handler.codec.http.FullHttpResponse.setStatus, io.netty.handler.codec.http.HttpResponse.setStatus.

Doc from io.netty.handler.codec.http.HttpResponse.setStatus.

Set the status of this HttpResponse.

Annotations
@Override
touchback to summary
public AssembledFullHttpResponse touch()

Overrides io.vertx.core.http.impl.AssembledHttpResponse.touch.

Implements io.netty.handler.codec.http.FullHttpResponse.touch, 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 AssembledFullHttpResponse touch(Object hint)

Overrides io.vertx.core.http.impl.AssembledHttpResponse.touch.

Implements io.netty.handler.codec.http.FullHttpResponse.touch, 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()

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

Annotations
@Override