Package io.netty.handler.codec.http
Interface FullHttpRequest
-
- All Superinterfaces:
ByteBufHolder,DecoderResultProvider,FullHttpMessage,HttpContent,HttpMessage,HttpObject,HttpRequest,LastHttpContent,ReferenceCounted
- All Known Implementing Classes:
DefaultFullHttpRequest
public interface FullHttpRequest extends HttpRequest, FullHttpMessage
Combine theHttpRequestandFullHttpMessage, so the request is a complete HTTP request.
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FullHttpRequestcopy()Creates a deep copy of thisByteBufHolder.FullHttpRequestduplicate()Duplicates thisByteBufHolder.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)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.-
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.HttpRequest
getMethod, getUri, method, uri
-
Methods inherited from interface io.netty.handler.codec.http.LastHttpContent
trailingHeaders
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Method Detail
-
copy
FullHttpRequest copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfaceFullHttpMessage- Specified by:
copyin interfaceHttpContent- Specified by:
copyin interfaceLastHttpContent
-
duplicate
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 interfaceHttpContent- Specified by:
duplicatein interfaceLastHttpContent
-
retainedDuplicate
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 interfaceHttpContent- Specified by:
retainedDuplicatein interfaceLastHttpContent- See Also:
ByteBuf.retainedDuplicate()
-
replace
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 interfaceHttpContent- Specified by:
replacein interfaceLastHttpContent
-
retain
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 interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted
-
retain
FullHttpRequest retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceFullHttpMessage- Specified by:
retainin interfaceHttpContent- Specified by:
retainin interfaceLastHttpContent- Specified by:
retainin interfaceReferenceCounted
-
touch
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 interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted
-
touch
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 interfaceHttpContent- Specified by:
touchin interfaceLastHttpContent- Specified by:
touchin interfaceReferenceCounted
-
setProtocolVersion
FullHttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage- Specified by:
setProtocolVersionin interfaceHttpRequest
-
setMethod
FullHttpRequest setMethod(HttpMethod method)
Description copied from interface:HttpRequestSet theHttpMethodof thisHttpRequest.- Specified by:
setMethodin interfaceHttpRequest
-
setUri
FullHttpRequest setUri(java.lang.String uri)
Description copied from interface:HttpRequestSet the requested URI (or alternatively, path)- Specified by:
setUriin interfaceHttpRequest
-
-