Class RequestExecutor

java.lang.Object
org.camunda.bpm.client.impl.RequestExecutor

public class RequestExecutor extends Object
Author:
Tassilo Weidner
  • Field Details

    • LOG

      protected static final EngineClientLogger LOG
    • HEADER_CONTENT_TYPE_JSON

      protected static final org.apache.hc.core5.http.Header HEADER_CONTENT_TYPE_JSON
    • HEADER_USER_AGENT

      protected static final org.apache.hc.core5.http.Header HEADER_USER_AGENT
    • httpClient

      protected org.apache.hc.client5.http.classic.HttpClient httpClient
    • objectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • RequestExecutor

      protected RequestExecutor(org.apache.hc.client5.http.classic.HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • postRequest

      protected <T> T postRequest(String resourceUrl, RequestDto requestDto, Class<T> responseClass)
    • getRequest

      protected byte[] getRequest(String resourceUrl)
    • executeRequest

      protected <T> T executeRequest(org.apache.hc.core5.http.ClassicHttpRequest httpRequest, Class<T> responseClass)
    • handleResponse

      protected <T> org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handleResponse(Class<T> responseClass)
    • deserializeResponse

      protected <T> T deserializeResponse(org.apache.hc.core5.http.HttpEntity httpEntity, Class<T> responseClass)
    • serializeRequest

      protected org.apache.hc.core5.http.io.entity.ByteArrayEntity serializeRequest(RequestDto dto)