Class ScriptHttpHandler
java.lang.Object
org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
com.flowable.serviceregistry.engine.impl.invoker.rest.ScriptHttpHandler
- All Implemented Interfaces:
HttpRequestHandler
,HttpResponseHandler
public class ScriptHttpHandler
extends AbstractScriptEvaluator
implements HttpRequestHandler, HttpResponseHandler
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
language, resultVariable, script
-
Constructor Summary
ConstructorDescriptionScriptHttpHandler
(Expression language, String script, ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation) -
Method Summary
Modifier and TypeMethodDescriptionprotected ScriptingEngines
void
handleHttpRequest
(VariableContainer variableContainer, HttpRequest httpRequest, FlowableHttpClient client) void
handleHttpResponse
(VariableContainer variableContainer, HttpResponse httpResponse) protected void
tagScripTrace
(ScriptTraceEnhancer.ScriptTraceContext scriptTrace, String handlerType) Methods inherited from class org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
createScriptRequest, evaluateScript, evaluateScriptRequest, getScript, setLanguage, setResultVariable, setScript, setScript, validateParameters
-
Field Details
-
serviceDefinitionModel
-
serviceOperation
-
-
Constructor Details
-
ScriptHttpHandler
public ScriptHttpHandler(Expression language, String script, ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation)
-
-
Method Details
-
getScriptingEngines
- Specified by:
getScriptingEngines
in classAbstractScriptEvaluator
-
handleHttpRequest
public void handleHttpRequest(VariableContainer variableContainer, HttpRequest httpRequest, FlowableHttpClient client) - Specified by:
handleHttpRequest
in interfaceHttpRequestHandler
-
handleHttpResponse
- Specified by:
handleHttpResponse
in interfaceHttpResponseHandler
-
tagScripTrace
protected void tagScripTrace(ScriptTraceEnhancer.ScriptTraceContext scriptTrace, String handlerType)
-