Package io.micronaut.http
Class FullHttpRequest<B>
- java.lang.Object
-
- io.micronaut.http.HttpMessageWrapper<B>
-
- io.micronaut.http.HttpRequestWrapper<B>
-
- io.micronaut.http.FullHttpRequest<B>
-
- Type Parameters:
B
- The body type
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder
,io.micronaut.core.attr.MutableAttributeHolder
,HttpMessage<B>
,HttpRequest<B>
public class FullHttpRequest<B> extends HttpRequestWrapper<B>
A request wrapper with knowledge of the body argument.- Since:
- 1.1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.http.HttpRequest
SCHEME_HTTP, SCHEME_HTTPS
-
-
Constructor Summary
Constructors Constructor Description FullHttpRequest(HttpRequest<B> delegate, io.micronaut.core.type.Argument<B> bodyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<B>
getBody()
-
Methods inherited from class io.micronaut.http.HttpRequestWrapper
accept, getCertificate, getCookies, getDelegate, getHttpVersion, getLocale, getMethod, getMethodName, getParameters, getPath, getRemoteAddress, getServerAddress, getServerName, getUri, getUserPrincipal, getUserPrincipal, isSecure, setAttribute
-
Methods inherited from class io.micronaut.http.HttpMessageWrapper
getAttributes, getBody, getBody, getHeaders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.http.HttpMessage
getAttributes, getBody, getBody, getCharacterEncoding, getContentLength, getContentType, getHeaders
-
Methods inherited from interface io.micronaut.http.HttpRequest
mutate
-
-
-
-
Constructor Detail
-
FullHttpRequest
public FullHttpRequest(HttpRequest<B> delegate, io.micronaut.core.type.Argument<B> bodyType)
- Parameters:
delegate
- The Http RequestbodyType
- The Body Type
-
-
Method Detail
-
getBody
public java.util.Optional<B> getBody()
- Specified by:
getBody
in interfaceHttpMessage<B>
- Overrides:
getBody
in classHttpMessageWrapper<B>
- Returns:
- The request body
-
-