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 HttpRequest
request
-
Constructor Summary
Constructors Constructor Description WrappedHttpRequest(HttpRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DecoderResult
decoderResult()
Returns the result of decoding this object.DecoderResult
getDecoderResult()
Deprecated.HttpMethod
getMethod()
HttpVersion
getProtocolVersion()
java.lang.String
getUri()
HttpHeaders
headers()
Returns the headers of this message.HttpMethod
method()
Returns theHttpMethod
of thisHttpRequest
.HttpVersion
protocolVersion()
Returns the protocol version of thisHttpMessage
void
setDecoderResult(DecoderResult result)
Updates the result of decoding this object.HttpRequest
setMethod(HttpMethod method)
Set theHttpMethod
of thisHttpRequest
.HttpRequest
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
HttpRequest
setUri(java.lang.String uri)
Set the requested URI (or alternatively, path)java.lang.String
uri()
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:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpRequest
-
setMethod
public HttpRequest setMethod(HttpMethod method)
Description copied from interface:HttpRequest
Set theHttpMethod
of thisHttpRequest
.- Specified by:
setMethod
in interfaceHttpRequest
-
setUri
public HttpRequest setUri(java.lang.String uri)
Description copied from interface:HttpRequest
Set the requested URI (or alternatively, path)- Specified by:
setUri
in interfaceHttpRequest
-
getMethod
public HttpMethod getMethod()
- Specified by:
getMethod
in interfaceHttpRequest
-
method
public HttpMethod method()
Description copied from interface:HttpRequest
Returns theHttpMethod
of thisHttpRequest
.- Specified by:
method
in interfaceHttpRequest
- Returns:
- The
HttpMethod
of thisHttpRequest
-
getUri
public java.lang.String getUri()
- Specified by:
getUri
in interfaceHttpRequest
-
uri
public java.lang.String uri()
Description copied from interface:HttpRequest
Returns the requested URI (or alternatively, path)- Specified by:
uri
in interfaceHttpRequest
- Returns:
- The URI being requested
-
getProtocolVersion
public HttpVersion getProtocolVersion()
- Specified by:
getProtocolVersion
in interfaceHttpMessage
-
protocolVersion
public HttpVersion protocolVersion()
Description copied from interface:HttpMessage
Returns the protocol version of thisHttpMessage
- Specified by:
protocolVersion
in interfaceHttpMessage
-
headers
public HttpHeaders headers()
Description copied from interface:HttpMessage
Returns the headers of this message.- Specified by:
headers
in interfaceHttpMessage
-
decoderResult
public DecoderResult decoderResult()
Description copied from interface:DecoderResultProvider
Returns the result of decoding this object.- Specified by:
decoderResult
in interfaceDecoderResultProvider
-
getDecoderResult
@Deprecated public DecoderResult getDecoderResult()
Deprecated.- Specified by:
getDecoderResult
in interfaceHttpObject
-
setDecoderResult
public void setDecoderResult(DecoderResult result)
Description copied from interface:DecoderResultProvider
Updates 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:
setDecoderResult
in interfaceDecoderResultProvider
-
-