public class DefaultFullHttpRequest extends DefaultHttpRequest implements FullHttpRequest
FullHttpRequest.EMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
boolean validateHeaders) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
ByteBuf content) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
ByteBuf content,
boolean validateHeaders) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
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. |
boolean |
equals(Object o) |
int |
hashCode() |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
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)
|
String |
toString() |
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.
|
HttpHeaders |
trailingHeaders() |
method, uriheaders, protocolVersiondecoderResult, setDecoderResultclone, finalize, getClass, notify, notifyAll, wait, wait, waitmethod, uriheaders, protocolVersiondecoderResult, setDecoderResultpublic DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content)
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders)
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, boolean validateHeaders)
public HttpHeaders trailingHeaders()
trailingHeaders in interface LastHttpContentpublic ByteBuf content()
ByteBufHolderByteBufHolder.content in interface ByteBufHolderpublic int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic FullHttpRequest retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpRequestretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedpublic FullHttpRequest retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpRequestretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedpublic FullHttpRequest touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpRequesttouch in interface HttpContenttouch in interface LastHttpContenttouch in interface ReferenceCountedpublic FullHttpRequest touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpRequesttouch in interface HttpContenttouch in interface LastHttpContenttouch in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic FullHttpRequest setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface FullHttpRequestsetProtocolVersion in interface HttpMessagesetProtocolVersion in interface HttpRequestsetProtocolVersion in class DefaultHttpRequestpublic FullHttpRequest setMethod(HttpMethod method)
HttpRequestHttpMethod of this HttpRequest.setMethod in interface FullHttpRequestsetMethod in interface HttpRequestsetMethod in class DefaultHttpRequestpublic FullHttpRequest setUri(String uri)
HttpRequestsetUri in interface FullHttpRequestsetUri in interface HttpRequestsetUri in class DefaultHttpRequestpublic FullHttpRequest copy(ByteBuf newContent)
FullHttpMessageFullHttpMessage with alternative content.copy in interface FullHttpMessagecopy in interface FullHttpRequestnewContent - 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.
public FullHttpRequest copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface FullHttpMessagecopy in interface FullHttpRequestcopy in interface HttpContentcopy in interface LastHttpContentpublic FullHttpRequest duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface FullHttpMessageduplicate in interface FullHttpRequestduplicate in interface HttpContentduplicate in interface LastHttpContentpublic int hashCode()
hashCode in class DefaultHttpRequestpublic boolean equals(Object o)
equals in class DefaultHttpRequestpublic String toString()
toString in class DefaultHttpRequestCopyright © 2008–2015 The Netty Project. All rights reserved.