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()
Create a deep copy of this
ByteBufHolder . |
FullHttpRequest |
copy(ByteBuf newContent)
Create a copy of this
FullHttpMessage with alternative content. |
FullHttpRequest |
duplicate()
Duplicate the
ByteBufHolder . |
FullHttpRequest |
retain()
Increases the reference count by
1 . |
FullHttpRequest |
retain(int increment)
Increases the reference count by the specified
increment . |
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 additonal arbitrary information for debugging
purposes.
|
method, uri
headers, protocolVersion
trailingHeaders
decoderResult, setDecoderResult
content
refCnt, release, release
FullHttpRequest copy(ByteBuf newContent)
FullHttpMessage
FullHttpMessage
with alternative content.copy
in interface FullHttpMessage
newContent
- The buffer to use instead of this FullHttpMessage
's content in the copy operation.
NOTE: retain will NOT be called on this buffer. null
results in an empty default choice buffer.
FullHttpRequest copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface HttpContent
copy
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 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 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–2015 The Netty Project. All rights reserved.