public class HttpActivityExecutor extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HttpActivityExecutor.TimeoutTask |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.client.HttpClientBuilder |
clientBuilder |
protected ErrorPropagator |
errorPropagator |
static String |
HTTP_TASK_REQUEST_FIELD_INVALID |
static String |
HTTP_TASK_REQUEST_HEADERS_INVALID |
static String |
HTTP_TASK_REQUEST_METHOD_INVALID |
static String |
HTTP_TASK_REQUEST_METHOD_REQUIRED |
static String |
HTTP_TASK_REQUEST_URL_REQUIRED |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected Timer |
timer |
| Constructor and Description |
|---|
HttpActivityExecutor(org.apache.http.impl.client.HttpClientBuilder clientBuilder,
ErrorPropagator errorPropagator,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
decode(String string) |
protected URI |
ensureUrlIsEncodedAndConvertToUri(URL url) |
void |
execute(HttpRequest request,
org.flowable.common.engine.api.variable.VariableContainer variableContainer,
String executionId,
HttpRequestHandler flowableHttpRequestHandler,
HttpResponseHandler flowableHttpResponseHandler,
String responseVariableName,
List<org.flowable.bpmn.model.MapExceptionEntry> mapExceptions,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout) |
protected String |
getHeadersAsString(org.apache.http.Header[] headers) |
HttpResponse |
perform(org.apache.http.impl.client.CloseableHttpClient client,
org.flowable.common.engine.api.variable.VariableContainer execution,
HttpRequest requestInfo,
HttpRequestHandler httpRequestHandler,
HttpResponseHandler httpResponseHandler,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout) |
protected void |
setConfig(org.apache.http.client.methods.HttpRequestBase base,
HttpRequest requestInfo,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout) |
protected void |
setHeaders(org.apache.http.HttpMessage base,
String headers) |
void |
validate(HttpRequest request) |
public static final String HTTP_TASK_REQUEST_METHOD_REQUIRED
public static final String HTTP_TASK_REQUEST_METHOD_INVALID
public static final String HTTP_TASK_REQUEST_URL_REQUIRED
public static final String HTTP_TASK_REQUEST_HEADERS_INVALID
public static final String HTTP_TASK_REQUEST_FIELD_INVALID
protected final Timer timer
protected final org.apache.http.impl.client.HttpClientBuilder clientBuilder
protected final ErrorPropagator errorPropagator
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public HttpActivityExecutor(org.apache.http.impl.client.HttpClientBuilder clientBuilder,
ErrorPropagator errorPropagator,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void execute(HttpRequest request, org.flowable.common.engine.api.variable.VariableContainer variableContainer, String executionId, HttpRequestHandler flowableHttpRequestHandler, HttpResponseHandler flowableHttpResponseHandler, String responseVariableName, List<org.flowable.bpmn.model.MapExceptionEntry> mapExceptions, int socketTimeout, int connectTimeout, int connectionRequestTimeout)
public void validate(HttpRequest request) throws org.flowable.common.engine.api.FlowableException
org.flowable.common.engine.api.FlowableExceptionpublic HttpResponse perform(org.apache.http.impl.client.CloseableHttpClient client, org.flowable.common.engine.api.variable.VariableContainer execution, HttpRequest requestInfo, HttpRequestHandler httpRequestHandler, HttpResponseHandler httpResponseHandler, int socketTimeout, int connectTimeout, int connectionRequestTimeout)
protected void setConfig(org.apache.http.client.methods.HttpRequestBase base,
HttpRequest requestInfo,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout)
protected String getHeadersAsString(org.apache.http.Header[] headers)
protected void setHeaders(org.apache.http.HttpMessage base,
String headers)
throws IOException
IOExceptionprotected URI ensureUrlIsEncodedAndConvertToUri(URL url) throws URISyntaxException
URISyntaxExceptionCopyright © 2019 Flowable. All rights reserved.