public class DefaultFullHttpRequest extends DefaultHttpRequest implements FullHttpRequest
FullHttpRequest.EMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri)
Create a full HTTP response with the given HTTP version, method, and URI.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
boolean validateHeaders)
Deprecated.
Use the
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead. |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
io.netty.buffer.ByteBuf content)
Create a full HTTP response with the given HTTP version, method, URI, and contents.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
io.netty.buffer.ByteBuf content,
boolean validateHeaders)
Deprecated.
Use the
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead. |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
io.netty.buffer.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.
|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
io.netty.buffer.ByteBuf content,
HttpHeaders headers,
HttpHeaders trailingHeader)
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
content() |
FullHttpRequest |
copy() |
FullHttpRequest |
duplicate() |
boolean |
equals(Object o) |
int |
hashCode() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
FullHttpRequest |
replace(io.netty.buffer.ByteBuf content) |
FullHttpRequest |
retain() |
FullHttpRequest |
retain(int increment) |
FullHttpRequest |
retainedDuplicate() |
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() |
FullHttpRequest |
touch(Object hint) |
HttpHeaders |
trailingHeaders() |
getMethod, getUri, method, urigetProtocolVersion, headers, protocolVersiondecoderResult, getDecoderResult, setDecoderResultclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMethod, getUri, method, urigetProtocolVersion, headers, protocolVersiongetDecoderResultpublic DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty.buffer.ByteBuf content)
@Deprecated public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders)
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.@Deprecated public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty.buffer.ByteBuf content, boolean validateHeaders)
DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty.buffer.ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
The recommended default header factory is DefaultHttpHeadersFactory.headersFactory(),
and the recommended default trailer factory is DefaultHttpHeadersFactory.trailersFactory().
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty.buffer.ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader)
public HttpHeaders trailingHeaders()
trailingHeaders in interface LastHttpContentpublic io.netty.buffer.ByteBuf content()
content in interface io.netty.buffer.ByteBufHolderpublic int refCnt()
refCnt in interface io.netty.util.ReferenceCountedpublic FullHttpRequest retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpRequestretain in interface HttpContentretain in interface LastHttpContentretain in interface io.netty.util.ReferenceCountedpublic FullHttpRequest retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpRequestretain in interface HttpContentretain in interface LastHttpContentretain in interface io.netty.util.ReferenceCountedpublic FullHttpRequest touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpRequesttouch in interface HttpContenttouch in interface LastHttpContenttouch in interface io.netty.util.ReferenceCountedpublic FullHttpRequest touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpRequesttouch in interface HttpContenttouch in interface LastHttpContenttouch in interface io.netty.util.ReferenceCountedpublic boolean release()
release in interface io.netty.util.ReferenceCountedpublic boolean release(int decrement)
release in interface io.netty.util.ReferenceCountedpublic 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()
copy in interface io.netty.buffer.ByteBufHoldercopy in interface FullHttpMessagecopy in interface FullHttpRequestcopy in interface HttpContentcopy in interface LastHttpContentpublic FullHttpRequest duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in interface FullHttpMessageduplicate in interface FullHttpRequestduplicate in interface HttpContentduplicate in interface LastHttpContentpublic FullHttpRequest retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderretainedDuplicate in interface FullHttpMessageretainedDuplicate in interface FullHttpRequestretainedDuplicate in interface HttpContentretainedDuplicate in interface LastHttpContentpublic FullHttpRequest replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderreplace in interface FullHttpMessagereplace in interface FullHttpRequestreplace in interface HttpContentreplace in interface LastHttpContentpublic int hashCode()
hashCode in class DefaultHttpRequestpublic boolean equals(Object o)
equals in class DefaultHttpRequestpublic String toString()
toString in class DefaultHttpRequestCopyright © 2008–2024 The Netty Project. All rights reserved.