Package org.camunda.connect.spi
Interface ConnectorInvocation
-
- All Known Implementing Classes:
AbstractRequestInvocation
public interface ConnectorInvocationRepresents a request invocation / request execution.- Author:
- Daniel Meyer
- See Also:
ConnectorRequestInterceptor.handleInvocation(ConnectorInvocation)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectorRequest<?>getRequest()The connector request as created through the API.java.lang.ObjectgetTarget()The underlying raw request.java.lang.Objectproceed()Makes the request proceed through the interceptor chain.
-
-
-
Method Detail
-
getTarget
java.lang.Object getTarget()
The underlying raw request.- Returns:
- the raw request as executed by the connector
-
getRequest
ConnectorRequest<?> getRequest()
The 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
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.- Returns:
- the connector request
-
proceed
java.lang.Object proceed() throws java.lang.ExceptionMakes the request proceed through the interceptor chain.ConnectorRequestInterceptorimplementations are responsible for calling this method on the invocation.- Returns:
- the result of the invocation.
- Throws:
java.lang.Exception
-
-