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

pack-priv Class AssembledHttpRequest

extends Object
implements HttpContent, HttpRequest
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpContent, io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted
Known Direct Subclasses
io.vertx.core.http.impl.AssembledFullHttpRequest
Imports
io.netty.buffer.ByteBuf, io.netty.handler.codec.DecoderResult, .UnsupportedMessageTypeException, io.netty.handler.codec.http.*

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

Field Summary

Modifier and TypeField and Description
protected final HttpContent
private final HttpRequest

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 AssembledHttpRequest
copy()

Implements io.netty.handler.codec.http.HttpContent.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 AssembledHttpRequest
public DecoderResult
public HttpMethod
public HttpVersion
public String
public HttpHeaders
headers()

Implements io.netty.handler.codec.http.HttpMessage.headers.

Returns the headers of this message.

public HttpMethod
public HttpVersion
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 HttpContent
replace(ByteBuf content)

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

Returns a new ByteBufHolder which contains the specified content.

public AssembledHttpRequest
retain()

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

Increases the reference count by 1.

public AssembledHttpRequest
retain(int increment)

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

Increases the reference count by the specified increment.

public HttpContent
public void
setDecoderResult(DecoderResult result)

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

Updates the result of decoding this object.

public HttpRequest
public HttpRequest
public HttpRequest
setUri(String uri)

Implements io.netty.handler.codec.http.HttpRequest.setUri.

Set the requested URI (or alternatively, path)

public AssembledHttpRequest
touch(Object hint)

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

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

public AssembledHttpRequest
touch()

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

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

public String
uri()

Implements io.netty.handler.codec.http.HttpRequest.uri.

Returns the requested URI (or alternatively, path)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentback to summary
protected final HttpContent content
requestback to summary
private final HttpRequest request

Constructor Detail

AssembledHttpRequestback to summary
pack-priv AssembledHttpRequest(HttpRequest request, ByteBuf buf)
AssembledHttpRequestback to summary
pack-priv AssembledHttpRequest(HttpRequest request, HttpContent content)

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 AssembledHttpRequest copy()

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

Implements 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
getDecoderResultback to summary
public DecoderResult getDecoderResult()

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

Annotations
@Override
getMethodback to summary
public HttpMethod getMethod()

Implements io.netty.handler.codec.http.HttpRequest.getMethod.

Annotations
@Override
getProtocolVersionback to summary
public HttpVersion getProtocolVersion()

Implements io.netty.handler.codec.http.HttpMessage.getProtocolVersion.

Annotations
@Override
getUriback to summary
public String getUri()

Implements io.netty.handler.codec.http.HttpRequest.getUri.

Annotations
@Override
headersback to summary
public HttpHeaders headers()

Implements io.netty.handler.codec.http.HttpMessage.headers.

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

Returns the headers of this message.

Annotations
@Override
methodback to summary
public HttpMethod method()

Implements io.netty.handler.codec.http.HttpRequest.method.

Doc from io.netty.handler.codec.http.HttpRequest.method.

Returns the HttpMethod of this HttpRequest.

Returns:HttpMethod

The HttpMethod of this HttpRequest

Annotations
@Override
protocolVersionback to summary
public HttpVersion protocolVersion()

Implements io.netty.handler.codec.http.HttpMessage.protocolVersion.

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

Returns the protocol version of this HttpMessage

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 HttpContent replace(ByteBuf content)

Implements 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 AssembledHttpRequest retain()

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

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

Increases the reference count by 1.

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

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

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

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public HttpContent retainedDuplicate()

Implements 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
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
setMethodback to summary
public HttpRequest setMethod(HttpMethod method)

Implements io.netty.handler.codec.http.HttpRequest.setMethod.

Doc from io.netty.handler.codec.http.HttpRequest.setMethod.

Set the HttpMethod of this HttpRequest.

Annotations
@Override
setProtocolVersionback to summary
public HttpRequest setProtocolVersion(HttpVersion version)

Implements io.netty.handler.codec.http.HttpRequest.setProtocolVersion.

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

Set the protocol version of this HttpMessage

Annotations
@Override
setUriback to summary
public HttpRequest setUri(String uri)

Implements io.netty.handler.codec.http.HttpRequest.setUri.

Doc from io.netty.handler.codec.http.HttpRequest.setUri.

Set the requested URI (or alternatively, path)

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

Implements 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
touchback to summary
public AssembledHttpRequest touch()

Implements 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
uriback to summary
public String uri()

Implements io.netty.handler.codec.http.HttpRequest.uri.

Doc from io.netty.handler.codec.http.HttpRequest.uri.

Returns the requested URI (or alternatively, path)

Returns:String

The URI being requested

Annotations
@Override