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
FieldsFields inherited from class org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
language, resultVariable, script -
Constructor Summary
ConstructorsConstructorDescriptionScriptHttpHandler(Expression language, String script, ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation) -
Method Summary
Modifier and TypeMethodDescriptionprotected ScriptingEnginesvoidhandleHttpRequest(VariableContainer variableContainer, HttpRequest httpRequest, FlowableHttpClient client) voidhandleHttpResponse(VariableContainer variableContainer, HttpResponse httpResponse) protected voidtagScripTrace(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:
getScriptingEnginesin classAbstractScriptEvaluator
-
handleHttpRequest
public void handleHttpRequest(VariableContainer variableContainer, HttpRequest httpRequest, FlowableHttpClient client) - Specified by:
handleHttpRequestin interfaceHttpRequestHandler
-
handleHttpResponse
- Specified by:
handleHttpResponsein interfaceHttpResponseHandler
-
tagScripTrace
protected void tagScripTrace(ScriptTraceEnhancer.ScriptTraceContext scriptTrace, String handlerType)
-