Package io.vrap.rmf.base.client
Class ApiHttpRequest
java.lang.Object
io.vrap.rmf.base.client.ApiHttpRequest
- All Implemented Interfaces:
ContextAware<ApiHttpRequest>
-
Constructor Summary
ConstructorDescriptionApiHttpRequest
(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> ApiHttpRequest
addContext
(T value) boolean
byte[]
getBody()
<T> T
getContext
(Class<T> key) getContext
(Object key) getUri()
getUrl()
int
hashCode()
int
toString()
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:
getContextMap
in interfaceContextAware<ApiHttpRequest>
-
withContextMap
- Specified by:
withContextMap
in interfaceContextAware<ApiHttpRequest>
-
getContext
- Specified by:
getContext
in interfaceContextAware<ApiHttpRequest>
-
addContext
- Specified by:
addContext
in interfaceContextAware<ApiHttpRequest>
-
getContext
- Specified by:
getContext
in interfaceContextAware<ApiHttpRequest>
-
addContext
- Specified by:
addContext
in 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()
-