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 Modifier and Type Field Description protected ServiceDefinitionModelserviceDefinitionModelprotected ServiceOperationserviceOperation-
Fields inherited from class org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
language, resultVariable, script
-
-
Constructor Summary
Constructors Constructor Description ScriptHttpHandler(Expression language, String script, ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScriptingEnginesgetScriptingEngines()voidhandleHttpRequest(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 Detail
-
serviceDefinitionModel
protected ServiceDefinitionModel serviceDefinitionModel
-
serviceOperation
protected ServiceOperation serviceOperation
-
-
Constructor Detail
-
ScriptHttpHandler
public ScriptHttpHandler(Expression language, String script, ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation)
-
-
Method Detail
-
getScriptingEngines
protected ScriptingEngines getScriptingEngines()
- Specified by:
getScriptingEnginesin classAbstractScriptEvaluator
-
handleHttpRequest
public void handleHttpRequest(VariableContainer variableContainer, HttpRequest httpRequest, FlowableHttpClient client)
- Specified by:
handleHttpRequestin interfaceHttpRequestHandler
-
handleHttpResponse
public void handleHttpResponse(VariableContainer variableContainer, HttpResponse httpResponse)
- Specified by:
handleHttpResponsein interfaceHttpResponseHandler
-
tagScripTrace
protected void tagScripTrace(ScriptTraceEnhancer.ScriptTraceContext scriptTrace, String handlerType)
-
-