public abstract class AbstractRequestInvocation<T> extends Object implements ConnectorInvocation
invokeTarget() method in order to implement
the actual request execution / target invocation.| Modifier and Type | Field and Description |
|---|---|
protected int |
currentIndex |
protected List<ConnectorRequestInterceptor> |
interceptorChain |
protected ConnectorRequest<?> |
request |
protected T |
target |
| Constructor and Description |
|---|
AbstractRequestInvocation(T target,
ConnectorRequest<?> request,
List<ConnectorRequestInterceptor> interceptorChain) |
| Modifier and Type | Method and Description |
|---|---|
ConnectorRequest<?> |
getRequest()
The connector request as created through the API.
|
T |
getTarget()
The underlying raw request.
|
abstract Object |
invokeTarget() |
Object |
proceed()
Makes the request proceed through the interceptor chain.
|
protected T target
protected int currentIndex
protected List<ConnectorRequestInterceptor> interceptorChain
protected ConnectorRequest<?> request
public AbstractRequestInvocation(T target, ConnectorRequest<?> request, List<ConnectorRequestInterceptor> interceptorChain)
public T getTarget()
ConnectorInvocationgetTarget in interface ConnectorInvocationpublic ConnectorRequest<?> getRequest()
ConnectorInvocationThe connector request as created through the API. Accessing the request from an
interceptor may be useful for setting additional properties on the raw request
(returned by ConnectorInvocation.getTarget()) that are not supported by the connector.
NOTE: setting parameters on the request (via) ConnectorRequest.setRequestParameter(String, Object)
will not have any effects once the request is executed.
getRequest in interface ConnectorInvocationpublic Object proceed() throws Exception
ConnectorInvocationConnectorRequestInterceptor implementations are responsible for
calling this method on the invocation.proceed in interface ConnectorInvocationExceptionCopyright © 2014–2022 Camunda Services GmbH. All rights reserved.