Package io.netty.handler.codec.http
Interface HttpRequest
-
- All Superinterfaces:
DecoderResultProvider,HttpMessage,HttpObject
- All Known Subinterfaces:
FullHttpRequest
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultHttpRequest
public interface HttpRequest extends HttpMessage
An HTTP request.Accessing Query Parameters and Cookie
Unlike the Servlet API, a query string is constructed and decomposed by
QueryStringEncoderandQueryStringDecoder.Cookiesupport is also provided separately viaServerCookieDecoder,ClientCookieDecoder,ServerCookieEncoder, andClientCookieEncoder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpMethodgetMethod()Deprecated.Usemethod()instead.java.lang.StringgetUri()Deprecated.Useuri()instead.HttpMethodmethod()Returns theHttpMethodof thisHttpRequest.HttpRequestsetMethod(HttpMethod method)Set theHttpMethodof thisHttpRequest.HttpRequestsetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessageHttpRequestsetUri(java.lang.String uri)Set the requested URI (or alternatively, path)java.lang.Stringuri()Returns the requested URI (or alternatively, path)-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
-
-
-
Method Detail
-
getMethod
@Deprecated HttpMethod getMethod()
Deprecated.Usemethod()instead.
-
method
HttpMethod method()
Returns theHttpMethodof thisHttpRequest.- Returns:
- The
HttpMethodof thisHttpRequest
-
setMethod
HttpRequest setMethod(HttpMethod method)
Set theHttpMethodof thisHttpRequest.
-
getUri
@Deprecated java.lang.String getUri()
Deprecated.Useuri()instead.
-
uri
java.lang.String uri()
Returns the requested URI (or alternatively, path)- Returns:
- The URI being requested
-
setUri
HttpRequest setUri(java.lang.String uri)
Set the requested URI (or alternatively, path)
-
setProtocolVersion
HttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
-