Class ClassDelegateHttpHandler
- java.lang.Object
-
- org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
-
- org.flowable.engine.impl.bpmn.http.handler.ClassDelegateHttpHandler
-
- All Implemented Interfaces:
Serializable,ActivityBehavior,TriggerableActivityBehavior,HttpRequestHandler,HttpResponseHandler
public class ClassDelegateHttpHandler extends AbstractClassDelegate implements HttpRequestHandler, HttpResponseHandler
Helper class for HTTP handlers to allow class delegation. This class will lazily instantiate the referenced classes when needed at runtime.- Author:
- Tijs Rademakers
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
className, fieldDeclarations, serviceTaskId
-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior
-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description ClassDelegateHttpHandler(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)ClassDelegateHttpHandler(String className, List<FieldDeclaration> fieldDeclarations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpRequestHandlergetHttpRequestHandlerInstance()protected HttpResponseHandlergetHttpResponseHandlerInstance()voidhandleHttpRequest(VariableContainer execution, HttpRequest httpRequest, FlowableHttpClient client)voidhandleHttpResponse(VariableContainer execution, HttpResponse httpResponse)-
Methods inherited from class org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
applyFieldDeclaration, applyFieldDeclaration, applyFieldDeclaration, applyFieldDeclaration, defaultInstantiateDelegate, defaultInstantiateDelegate, defaultInstantiateDelegate, defaultInstantiateDelegate, getClassName, instantiateDelegate
-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior
-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
execute, leaveIgnoreConditions, parseActivityType, trigger
-
-
-
-
Constructor Detail
-
ClassDelegateHttpHandler
public ClassDelegateHttpHandler(String className, List<FieldDeclaration> fieldDeclarations)
-
ClassDelegateHttpHandler
public ClassDelegateHttpHandler(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
-
-
Method Detail
-
handleHttpRequest
public void handleHttpRequest(VariableContainer execution, HttpRequest httpRequest, FlowableHttpClient client)
- Specified by:
handleHttpRequestin interfaceHttpRequestHandler
-
handleHttpResponse
public void handleHttpResponse(VariableContainer execution, HttpResponse httpResponse)
- Specified by:
handleHttpResponsein interfaceHttpResponseHandler
-
getHttpRequestHandlerInstance
protected HttpRequestHandler getHttpRequestHandlerInstance()
-
getHttpResponseHandlerInstance
protected HttpResponseHandler getHttpResponseHandlerInstance()
-
-