Package io.vrap.rmf.base.client
Class ApiHttpRequest
java.lang.Object
io.vrap.rmf.base.client.ApiHttpRequest
- All Implemented Interfaces:
ContextAware<ApiHttpRequest>
-
Constructor Summary
ConstructorsConstructorDescriptionApiHttpRequest(ApiHttpMethod method, URI uri, ApiHttpHeaders headers, byte[] body) ApiHttpRequest(ApiHttpMethod method, URI uri, ApiHttpHeaders headers, byte[] body, Map<Object, Object> contextMap) -
Method Summary
Modifier and TypeMethodDescriptionaddContext(Object key, Object value) <T> ApiHttpRequestaddContext(T value) booleanbyte[]getBody()<T> TgetContext(Class<T> key) getContext(Object key) getUri()getUrl()inthashCode()inttoString()withBody(byte[] body) withContextMap(Map<Object, Object> contextMap) withHeader(String key, String value) withHeaders(ApiHttpHeaders headers) withMethod(ApiHttpMethod method) withoutHeader(String key)
-
Constructor Details
-
ApiHttpRequest
public ApiHttpRequest() -
ApiHttpRequest
public ApiHttpRequest(ApiHttpMethod method, URI uri, ApiHttpHeaders headers, byte[] body, Map<Object, Object> contextMap) -
ApiHttpRequest
-
ApiHttpRequest
-
-
Method Details
-
getContextMap
- Specified by:
getContextMapin interfaceContextAware<ApiHttpRequest>
-
withContextMap
- Specified by:
withContextMapin interfaceContextAware<ApiHttpRequest>
-
getContext
- Specified by:
getContextin interfaceContextAware<ApiHttpRequest>
-
addContext
- Specified by:
addContextin interfaceContextAware<ApiHttpRequest>
-
getContext
- Specified by:
getContextin interfaceContextAware<ApiHttpRequest>
-
addContext
- Specified by:
addContextin interfaceContextAware<ApiHttpRequest>
-
getMethod
-
withMethod
-
getHeaders
-
addHeader
-
withHeaders
-
withHeader
-
withoutHeader
-
getBody
public byte[] getBody() -
withBody
-
withBody
-
getUri
-
getUrl
-
withUri
-
withUri
-
resolve
-
toString
-
getSecuredBody
-
equals
-
hashCode
public int hashCode() -
reflectionHashCode
public int reflectionHashCode()
-