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
ConstructorsConstructorDescriptionApiHttpResponse(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) booleangetBody()<T> TgetContext(Class<T> key) getContext(Object key) intinthashCode()inttoString()<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:
getContextMapin interfaceContextAware<U>
-
withContextMap
- Specified by:
withContextMapin interfaceContextAware<U>
-
getContext
- Specified by:
getContextin interfaceContextAware<U>
-
addContext
- Specified by:
addContextin interfaceContextAware<U>
-
getContext
- Specified by:
getContextin interfaceContextAware<U>
-
addContext
- Specified by:
addContextin 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()
-