public interface FullHttpRequest extends HttpRequest, FullHttpMessage
HttpRequest
and FullHttpMessage
, so the request is a complete HTTP
request.EMPTY_LAST_CONTENT
Modifier and Type | Method and Description |
---|---|
FullHttpRequest |
copy()
Creates a deep copy of this
ByteBufHolder . |
FullHttpRequest |
duplicate()
Duplicates this
ByteBufHolder . |
FullHttpRequest |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
FullHttpRequest |
retain()
Increases the reference count by
1 . |
FullHttpRequest |
retain(int increment)
Increases the reference count by the specified
increment . |
FullHttpRequest |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
FullHttpRequest |
setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
FullHttpRequest |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
FullHttpRequest |
setUri(String uri)
Set the requested URI (or alternatively, path)
|
FullHttpRequest |
touch()
Records the current access location of this object for debugging purposes.
|
FullHttpRequest |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
getMethod, getUri, method, uri
getProtocolVersion, headers, protocolVersion
trailingHeaders
getDecoderResult
decoderResult, setDecoderResult
content
refCnt, release, release
FullHttpRequest copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface HttpContent
copy
in interface LastHttpContent
FullHttpRequest duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface FullHttpMessage
duplicate
in interface HttpContent
duplicate
in interface LastHttpContent
FullHttpRequest retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface FullHttpMessage
retainedDuplicate
in interface HttpContent
retainedDuplicate
in interface LastHttpContent
ByteBuf.retainedDuplicate()
FullHttpRequest replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface FullHttpMessage
replace
in interface HttpContent
replace
in interface LastHttpContent
FullHttpRequest retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
FullHttpRequest retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
FullHttpRequest touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface ReferenceCounted
FullHttpRequest touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface ReferenceCounted
FullHttpRequest setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
setProtocolVersion
in interface HttpRequest
FullHttpRequest setMethod(HttpMethod method)
HttpRequest
HttpMethod
of this HttpRequest
.setMethod
in interface HttpRequest
FullHttpRequest setUri(String uri)
HttpRequest
setUri
in interface HttpRequest
Copyright © 2008–2024 The Netty Project. All rights reserved.