|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.connect.impl.AbstractRequestInvocation<T>
public abstract class AbstractRequestInvocation<T>
A simple invocation implementation routing a request through a chain of interceptors.
Implementations must implement the invokeTarget() method in order to implement
the actual request execution / target invocation.
| Field Summary | |
|---|---|
protected int |
currentIndex
|
protected List<ConnectorRequestInterceptor> |
interceptorChain
|
protected ConnectorRequest<?> |
request
|
protected T |
target
|
| Constructor Summary | |
|---|---|
AbstractRequestInvocation(T target,
ConnectorRequest<?> request,
List<ConnectorRequestInterceptor> interceptorChain)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected T target
protected int currentIndex
protected List<ConnectorRequestInterceptor> interceptorChain
protected ConnectorRequest<?> request
| Constructor Detail |
|---|
public AbstractRequestInvocation(T target,
ConnectorRequest<?> request,
List<ConnectorRequestInterceptor> interceptorChain)
| Method Detail |
|---|
public T getTarget()
ConnectorInvocation
getTarget 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 ConnectorInvocation
public Object proceed()
throws Exception
ConnectorInvocationConnectorRequestInterceptor implementations are responsible for
calling this method on the invocation.
proceed in interface ConnectorInvocationException
public abstract Object invokeTarget()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||