Package org.camunda.bpm.client.impl
Class RequestExecutor
java.lang.Object
org.camunda.bpm.client.impl.RequestExecutor
- Author:
- Tassilo Weidner
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.http.Header
protected static final org.apache.http.Header
protected org.apache.http.client.HttpClient
protected static final EngineClientLogger
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ModifierConstructorDescriptionprotected
RequestExecutor
(RequestInterceptorHandler requestInterceptorHandler, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
deserializeResponse
(org.apache.http.HttpEntity httpEntity, Class<T> responseClass) protected <T> T
executeRequest
(org.apache.http.client.methods.HttpUriRequest httpRequest, Class<T> responseClass) protected byte[]
getRequest
(String resourceUrl) protected <T> org.apache.http.client.ResponseHandler<T>
handleResponse
(Class<T> responseClass) protected void
initHttpClient
(RequestInterceptorHandler requestInterceptorHandler) protected <T> T
postRequest
(String resourceUrl, RequestDto requestDto, Class<T> responseClass) protected org.apache.http.entity.ByteArrayEntity
-
Field Details
-
LOG
-
HEADER_CONTENT_TYPE_JSON
protected static final org.apache.http.Header HEADER_CONTENT_TYPE_JSON -
HEADER_USER_AGENT
protected static final org.apache.http.Header HEADER_USER_AGENT -
httpClient
protected org.apache.http.client.HttpClient httpClient -
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
RequestExecutor
protected RequestExecutor(RequestInterceptorHandler requestInterceptorHandler, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
postRequest
-
getRequest
-
executeRequest
protected <T> T executeRequest(org.apache.http.client.methods.HttpUriRequest httpRequest, Class<T> responseClass) -
handleResponse
-
deserializeResponse
-
serializeRequest
-
initHttpClient
-