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:
AttributeHolder, MutableAttributeHolder, HttpMessage<B>, HttpResponse<B>
- Direct Known Subclasses:
ByteBodyHttpResponseWrapper
A wrapper around a
HttpResponse.- Since:
- 1.0.1
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HttpMessageWrapper
getAttributes, getBody, getBody, getBody, getBody, getHeadersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AttributeHolder
getAttribute, getAttributeMethods inherited from interface HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocaleMethods inherited from interface HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, status, toMutableResponseMethods inherited from interface MutableAttributeHolder
removeAttribute
-
Constructor Details
-
HttpResponseWrapper
- Parameters:
delegate- The Http Request
-
-
Method Details
-
code
public int code()- Specified by:
codein interfaceHttpResponse<B>- Returns:
- The response status code
-
reason
- Specified by:
reasonin interfaceHttpResponse<B>- Returns:
- The HTTP status reason phrase
-
getDelegate
- Overrides:
getDelegatein classHttpMessageWrapper<B>- Returns:
- The Http message
-