Package io.vrap.rmf.base.client
Class ApiHttpResponse<U>
java.lang.Object
io.vrap.rmf.base.client.ApiHttpResponse<U>
- All Implemented Interfaces:
ContextAware<ApiHttpResponse<U>>
-
Constructor Summary
ConstructorDescriptionApiHttpResponse
(int statusCode, ApiHttpHeaders headers, U body) ApiHttpResponse
(int statusCode, ApiHttpHeaders headers, U body, String message) ApiHttpResponse
(int statusCode, ApiHttpHeaders headers, U body, String message, Map<Object, Object> contextMap) ApiHttpResponse
(ApiHttpResponse<U> response) -
Method Summary
Modifier and TypeMethodDescriptionaddContext
(Object key, Object value) <T> ApiHttpResponse<U>
addContext
(T value) boolean
getBody()
<T> T
getContext
(Class<T> key) getContext
(Object key) int
int
hashCode()
int
toString()
<TBody> ApiHttpResponse<TBody>
<TBody> ApiHttpResponse<TBody>
withBody
(TBody body) withContextMap
(Map<Object, Object> contextMap) withHeaders
(ApiHttpHeaders headers) withMessage
(String message) withStatusCode
(int statusCode)
-
Constructor Details
-
ApiHttpResponse
-
ApiHttpResponse
-
ApiHttpResponse
-
ApiHttpResponse
-
-
Method Details
-
getContextMap
- Specified by:
getContextMap
in interfaceContextAware<U>
-
withContextMap
- Specified by:
withContextMap
in interfaceContextAware<U>
-
getContext
- Specified by:
getContext
in interfaceContextAware<U>
-
addContext
- Specified by:
addContext
in interfaceContextAware<U>
-
getContext
- Specified by:
getContext
in interfaceContextAware<U>
-
addContext
- Specified by:
addContext
in interfaceContextAware<U>
-
getStatusCode
public int getStatusCode() -
withStatusCode
-
getHeaders
-
withHeaders
-
getBody
-
withBody
-
withBody
-
getMessage
-
withMessage
-
toString
-
getBodyAsString
-
getSecuredBody
-
equals
-
hashCode
public int hashCode() -
reflectionHashCode
public int reflectionHashCode()
-