Class HttpPostRequestEncoder.WrappedHttpRequest
- java.lang.Object
-
- io.netty.handler.codec.http.multipart.HttpPostRequestEncoder.WrappedHttpRequest
-
- All Implemented Interfaces:
DecoderResultProvider,HttpMessage,HttpObject,HttpRequest
- Direct Known Subclasses:
HttpPostRequestEncoder.WrappedFullHttpRequest
- Enclosing class:
- HttpPostRequestEncoder
private static class HttpPostRequestEncoder.WrappedHttpRequest extends java.lang.Object implements HttpRequest
-
-
Field Summary
Fields Modifier and Type Field Description private HttpRequestrequest
-
Constructor Summary
Constructors Constructor Description WrappedHttpRequest(HttpRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DecoderResultdecoderResult()Returns the result of decoding this object.DecoderResultgetDecoderResult()Deprecated.HttpMethodgetMethod()HttpVersiongetProtocolVersion()java.lang.StringgetUri()HttpHeadersheaders()Returns the headers of this message.HttpMethodmethod()Returns theHttpMethodof thisHttpRequest.HttpVersionprotocolVersion()Returns the protocol version of thisHttpMessagevoidsetDecoderResult(DecoderResult result)Updates the result of decoding this object.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)
-
-
-
Field Detail
-
request
private final HttpRequest request
-
-
Constructor Detail
-
WrappedHttpRequest
WrappedHttpRequest(HttpRequest request)
-
-
Method Detail
-
setProtocolVersion
public HttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage- Specified by:
setProtocolVersionin interfaceHttpRequest
-
setMethod
public HttpRequest setMethod(HttpMethod method)
Description copied from interface:HttpRequestSet theHttpMethodof thisHttpRequest.- Specified by:
setMethodin interfaceHttpRequest
-
setUri
public HttpRequest setUri(java.lang.String uri)
Description copied from interface:HttpRequestSet the requested URI (or alternatively, path)- Specified by:
setUriin interfaceHttpRequest
-
getMethod
public HttpMethod getMethod()
- Specified by:
getMethodin interfaceHttpRequest
-
method
public HttpMethod method()
Description copied from interface:HttpRequestReturns theHttpMethodof thisHttpRequest.- Specified by:
methodin interfaceHttpRequest- Returns:
- The
HttpMethodof thisHttpRequest
-
getUri
public java.lang.String getUri()
- Specified by:
getUriin interfaceHttpRequest
-
uri
public java.lang.String uri()
Description copied from interface:HttpRequestReturns the requested URI (or alternatively, path)- Specified by:
uriin interfaceHttpRequest- Returns:
- The URI being requested
-
getProtocolVersion
public HttpVersion getProtocolVersion()
- Specified by:
getProtocolVersionin interfaceHttpMessage
-
protocolVersion
public HttpVersion protocolVersion()
Description copied from interface:HttpMessageReturns the protocol version of thisHttpMessage- Specified by:
protocolVersionin interfaceHttpMessage
-
headers
public HttpHeaders headers()
Description copied from interface:HttpMessageReturns the headers of this message.- Specified by:
headersin interfaceHttpMessage
-
decoderResult
public DecoderResult decoderResult()
Description copied from interface:DecoderResultProviderReturns the result of decoding this object.- Specified by:
decoderResultin interfaceDecoderResultProvider
-
getDecoderResult
@Deprecated public DecoderResult getDecoderResult()
Deprecated.- Specified by:
getDecoderResultin interfaceHttpObject
-
setDecoderResult
public void setDecoderResult(DecoderResult result)
Description copied from interface:DecoderResultProviderUpdates the result of decoding this object. This method is supposed to be invoked by a decoder. Do not call this method unless you know what you are doing.- Specified by:
setDecoderResultin interfaceDecoderResultProvider
-
-