FullHttpRequest.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuf | |
| private int | hash
Used to cache the value of the hash code and avoid |
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
Create a full HTTP response with the given HTTP version, method, and URI. |
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content)
Create a full HTTP response with the given HTTP version, method, URI, and contents. |
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders)
Deprecated
Use the
Create a full HTTP response with the given HTTP version, method, URI, and optional validation.
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, boolean validateHeaders)
Deprecated
Use the
Create a full HTTP response with the given HTTP version, method, URI, contents, and optional validation.
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
Create a full HTTP response with the given HTTP version, method, URI, contents, and factories for creating headers and trailers. |
| public | DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader)
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects. |
| content | back to summary |
|---|---|
| private final ByteBuf content | |
| hash | back to summary |
|---|---|
| private int hash Used to cache the value of the hash code and avoid | |
| trailingHeader | back to summary |
|---|---|
| private final HttpHeaders trailingHeader | |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri) Create a full HTTP response with the given HTTP version, method, and URI. | |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content) Create a full HTTP response with the given HTTP version, method, URI, and contents. | |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders)
Deprecated Use the Create a full HTTP response with the given HTTP version, method, URI, and optional validation.
| |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, boolean validateHeaders)
Deprecated Use the Create a full HTTP response with the given HTTP version, method, URI, contents, and optional validation.
| |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) Create a full HTTP response with the given HTTP version, method, URI, contents, and factories for creating headers and trailers.
The recommended default header factory is | |
| DefaultFullHttpRequest | back to summary |
|---|---|
| public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader) Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects. | |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Return the data which is held by this
| |
| copy | back to summary |
|---|---|
| public FullHttpRequest copy() Implements io. Doc from io. Creates a deep copy of this
| |
| duplicate | back to summary |
|---|---|
| public FullHttpRequest duplicate() Implements io. Doc from io. Duplicates this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| replace | back to summary |
|---|---|
| public FullHttpRequest replace(ByteBuf content) Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public FullHttpRequest retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public FullHttpRequest retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public FullHttpRequest retainedDuplicate() Implements io. Doc from io. Duplicates this
| |
| setMethod | back to summary |
|---|---|
| public FullHttpRequest setMethod(HttpMethod method) Overrides io. Implements io. Doc from io. Set the
| |
| setProtocolVersion | back to summary |
|---|---|
| public FullHttpRequest setProtocolVersion(HttpVersion version) Overrides io. Implements io. Doc from io. Set the protocol version of this
| |
| setUri | back to summary |
|---|---|
| public FullHttpRequest setUri(String uri) Overrides io. Implements io. Doc from io. Set the requested URI (or alternatively, path)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public FullHttpRequest touch() Implements io. Doc from io. Records 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
via
| |
| touch | back to summary |
|---|---|
| public FullHttpRequest touch(Object hint) Implements io. Doc from io. Records 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 via
| |
| trailingHeaders | back to summary |
|---|---|
| public HttpHeaders trailingHeaders() Implements io.
| |