Package io.micronaut.http
Class HttpResponseWrapper<B>
- java.lang.Object
-
- io.micronaut.http.HttpMessageWrapper<B>
-
- io.micronaut.http.HttpResponseWrapper<B>
-
- Type Parameters:
B
- The Http body type
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder
,io.micronaut.core.attr.MutableAttributeHolder
,HttpMessage<B>
,HttpResponse<B>
public class HttpResponseWrapper<B> extends HttpMessageWrapper<B> implements HttpResponse<B>
A wrapper around aHttpResponse
.- Since:
- 1.0.1
-
-
Constructor Summary
Constructors Constructor Description HttpResponseWrapper(HttpResponse<B> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse<B>
getDelegate()
HttpStatus
getStatus()
-
Methods inherited from class io.micronaut.http.HttpMessageWrapper
getAttributes, getBody, 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, getBody, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocale
-
Methods inherited from interface io.micronaut.http.HttpResponse
body, code, getCookie, getCookies, header, reason, setAttribute, status
-
-
-
-
Constructor Detail
-
HttpResponseWrapper
public HttpResponseWrapper(HttpResponse<B> delegate)
- Parameters:
delegate
- The Http Request
-
-
Method Detail
-
getStatus
public HttpStatus getStatus()
- Specified by:
getStatus
in interfaceHttpResponse<B>
- Returns:
- The current status
-
getDelegate
public HttpResponse<B> getDelegate()
- Overrides:
getDelegate
in classHttpMessageWrapper<B>
- Returns:
- The Http message
-
-