Package io.camunda.connector.http
Class HttpJsonFunction
java.lang.Object
io.camunda.connector.http.HttpJsonFunction
- All Implemented Interfaces:
io.camunda.connector.api.outbound.OutboundConnectorFunction
public class HttpJsonFunction
extends Object
implements io.camunda.connector.api.outbound.OutboundConnectorFunction
-
Constructor Summary
ConstructorsConstructorDescriptionHttpJsonFunction(com.google.gson.Gson gson, com.google.api.client.http.HttpRequestFactory requestFactory, com.google.api.client.json.gson.GsonFactory gsonFactory) -
Method Summary
Modifier and TypeMethodDescriptionexecute(io.camunda.connector.api.outbound.OutboundConnectorContext context) protected HttpJsonResulthandleRequest(HttpJsonRequest request) protected com.google.api.client.http.HttpResponsesendRequest(com.google.api.client.http.HttpRequest request)
-
Constructor Details
-
HttpJsonFunction
public HttpJsonFunction() -
HttpJsonFunction
public HttpJsonFunction(com.google.gson.Gson gson, com.google.api.client.http.HttpRequestFactory requestFactory, com.google.api.client.json.gson.GsonFactory gsonFactory)
-
-
Method Details
-
execute
public Object execute(io.camunda.connector.api.outbound.OutboundConnectorContext context) throws IOException - Specified by:
executein interfaceio.camunda.connector.api.outbound.OutboundConnectorFunction- Throws:
IOException
-
handleRequest
- Throws:
IOException
-
sendRequest
protected com.google.api.client.http.HttpResponse sendRequest(com.google.api.client.http.HttpRequest request) throws IOException - Throws:
IOException
-