Class HttpInteractionService
java.lang.Object
io.camunda.connector.http.base.services.HttpInteractionService
-
Constructor Summary
ConstructorsConstructorDescriptionHttpInteractionService(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.client.http.HttpHeaderscreateHeaders(HttpCommonRequest request, String bearerToken) com.google.api.client.http.HttpResponseexecuteHttpRequest(com.google.api.client.http.HttpRequest externalRequest) com.google.api.client.http.HttpResponseexecuteHttpRequest(com.google.api.client.http.HttpRequest externalRequest, boolean isProxyCall) static com.google.api.client.http.HttpHeadersextractRequestHeaders(HttpCommonRequest httpCommonRequest) protected static booleanisJSONValid(String jsonInString) <T extends HttpCommonResult>
TtoHttpResponse(com.google.api.client.http.HttpResponse externalResponse, Class<T> resultClass)
-
Constructor Details
-
HttpInteractionService
public HttpInteractionService(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
createHeaders
public com.google.api.client.http.HttpHeaders createHeaders(HttpCommonRequest request, String bearerToken) -
extractRequestHeaders
public static com.google.api.client.http.HttpHeaders extractRequestHeaders(HttpCommonRequest httpCommonRequest) -
executeHttpRequest
public com.google.api.client.http.HttpResponse executeHttpRequest(com.google.api.client.http.HttpRequest externalRequest) throws IOException - Throws:
IOException
-
executeHttpRequest
public com.google.api.client.http.HttpResponse executeHttpRequest(com.google.api.client.http.HttpRequest externalRequest, boolean isProxyCall) throws IOException - Throws:
IOException
-
toHttpResponse
public <T extends HttpCommonResult> T toHttpResponse(com.google.api.client.http.HttpResponse externalResponse, Class<T> resultClass) throws InstantiationException, IllegalAccessException -
isJSONValid
-