Package io.netty.handler.codec.http
Class HttpObjectAggregator.AggregatedFullHttpRequest
- java.lang.Object
-
- io.netty.handler.codec.http.HttpObjectAggregator.AggregatedFullHttpMessage
-
- io.netty.handler.codec.http.HttpObjectAggregator.AggregatedFullHttpRequest
-
- All Implemented Interfaces:
ByteBufHolder,DecoderResultProvider,FullHttpMessage,FullHttpRequest,HttpContent,HttpMessage,HttpObject,HttpRequest,LastHttpContent,ReferenceCounted
- Enclosing class:
- HttpObjectAggregator
private static final class HttpObjectAggregator.AggregatedFullHttpRequest extends HttpObjectAggregator.AggregatedFullHttpMessage implements FullHttpRequest
-
-
Field Summary
-
Fields inherited from class io.netty.handler.codec.http.HttpObjectAggregator.AggregatedFullHttpMessage
message
-
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT
-
-
Constructor Summary
Constructors Constructor Description AggregatedFullHttpRequest(HttpRequest request, ByteBuf content, HttpHeaders trailingHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FullHttpRequestcopy()Creates a deep copy of thisByteBufHolder.FullHttpRequestduplicate()Duplicates thisByteBufHolder.HttpMethodgetMethod()java.lang.StringgetUri()HttpMethodmethod()Returns theHttpMethodof thisHttpRequest.FullHttpRequestreplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.FullHttpRequestretain()Increases the reference count by1.FullHttpRequestretain(int increment)Increases the reference count by the specifiedincrement.FullHttpRequestretainedDuplicate()Duplicates thisByteBufHolder.FullHttpRequestsetMethod(HttpMethod method)Set theHttpMethodof thisHttpRequest.FullHttpRequestsetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessageFullHttpRequestsetUri(java.lang.String uri)Set the requested URI (or alternatively, path)java.lang.StringtoString()FullHttpRequesttouch()Records the current access location of this object for debugging purposes.FullHttpRequesttouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.java.lang.Stringuri()Returns the requested URI (or alternatively, path)-
Methods inherited from class io.netty.handler.codec.http.HttpObjectAggregator.AggregatedFullHttpMessage
content, decoderResult, getDecoderResult, getProtocolVersion, headers, protocolVersion, refCnt, release, release, setDecoderResult, setTrailingHeaders, trailingHeaders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.LastHttpContent
trailingHeaders
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Constructor Detail
-
AggregatedFullHttpRequest
AggregatedFullHttpRequest(HttpRequest request, ByteBuf content, HttpHeaders trailingHeaders)
-
-
Method Detail
-
copy
public FullHttpRequest copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceFullHttpMessage- Specified by:
copyin interfaceFullHttpRequest- Specified by:
copyin interfaceHttpContent- Specified by:
copyin interfaceLastHttpContent- Specified by:
copyin classHttpObjectAggregator.AggregatedFullHttpMessage
-
duplicate
public FullHttpRequest duplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfaceFullHttpMessage- Specified by:
duplicatein interfaceFullHttpRequest- Specified by:
duplicatein interfaceHttpContent- Specified by:
duplicatein interfaceLastHttpContent- Specified by:
duplicatein classHttpObjectAggregator.AggregatedFullHttpMessage
-
retainedDuplicate
public FullHttpRequest retainedDuplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfaceFullHttpMessage- Specified by:
retainedDuplicatein interfaceFullHttpRequest- Specified by:
retainedDuplicatein interfaceHttpContent- Specified by:
retainedDuplicatein interfaceLastHttpContent- Specified by:
retainedDuplicatein classHttpObjectAggregator.AggregatedFullHttpMessage- See Also:
ByteBuf.retainedDuplicate()
-
replace
public FullHttpRequest replace(ByteBuf content)
Description copied from interface:ByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.- Specified by:
replacein interfaceByteBufHolder- Specified by:
replacein interfaceFullHttpMessage- Specified by:
replacein interfaceFullHttpRequest- Specified by:
replacein interfaceHttpContent- Specified by:
replacein interfaceLastHttpContent
-
retain
public FullHttpRequest retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceFullHttpMessage- Specified by:
retainin interfaceFullHttpRequest- Specified by:
retainin interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classHttpObjectAggregator.AggregatedFullHttpMessage
-
retain
public FullHttpRequest retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceFullHttpMessage- Specified by:
retainin interfaceFullHttpRequest- Specified by:
retainin interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classHttpObjectAggregator.AggregatedFullHttpMessage
-
touch
public FullHttpRequest touch()
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceFullHttpMessage- Specified by:
touchin interfaceFullHttpRequest- Specified by:
touchin interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classHttpObjectAggregator.AggregatedFullHttpMessage
-
touch
public FullHttpRequest touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector.- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceFullHttpMessage- Specified by:
touchin interfaceFullHttpRequest- Specified by:
touchin interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classHttpObjectAggregator.AggregatedFullHttpMessage
-
setMethod
public FullHttpRequest setMethod(HttpMethod method)
Description copied from interface:HttpRequestSet theHttpMethodof thisHttpRequest.- Specified by:
setMethodin interfaceFullHttpRequest- Specified by:
setMethodin interfaceHttpRequest
-
setUri
public FullHttpRequest setUri(java.lang.String uri)
Description copied from interface:HttpRequestSet the requested URI (or alternatively, path)- Specified by:
setUriin interfaceFullHttpRequest- Specified by:
setUriin interfaceHttpRequest
-
getMethod
public HttpMethod getMethod()
- Specified by:
getMethodin interfaceHttpRequest
-
getUri
public java.lang.String getUri()
- Specified by:
getUriin interfaceHttpRequest
-
method
public HttpMethod method()
Description copied from interface:HttpRequestReturns theHttpMethodof thisHttpRequest.- Specified by:
methodin interfaceHttpRequest- Returns:
- The
HttpMethodof thisHttpRequest
-
uri
public java.lang.String uri()
Description copied from interface:HttpRequestReturns the requested URI (or alternatively, path)- Specified by:
uriin interfaceHttpRequest- Returns:
- The URI being requested
-
setProtocolVersion
public FullHttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceFullHttpRequest- Specified by:
setProtocolVersionin interfaceHttpMessage- Specified by:
setProtocolVersionin interfaceHttpRequest- Overrides:
setProtocolVersionin classHttpObjectAggregator.AggregatedFullHttpMessage
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-