|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.connect.impl.AbstractConnector<Q,R>
public abstract class AbstractConnector<Q extends ConnectorRequest<R>,R extends ConnectorResponse>
Abstract implementation of the connector interface. This implementation provides a linked list of interceptors and related methods for handling interceptor invocation.
| Field Summary | |
|---|---|
protected String |
connectorId
|
protected List<ConnectorRequestInterceptor> |
requestInterceptors
The ConnectorRequestInterceptor chain |
| Constructor Summary | |
|---|---|
AbstractConnector(String connectorId)
|
|
| Method Summary | |
|---|---|
Connector<Q> |
addRequestInterceptor(ConnectorRequestInterceptor interceptor)
Adds a ConnectorRequestInterceptor to this connector. |
Connector<Q> |
addRequestInterceptors(Collection<ConnectorRequestInterceptor> interceptors)
Adds a collection of ConnectorRequestInterceptor to this connector. |
String |
getId()
The unique Id for the connector. |
List<ConnectorRequestInterceptor> |
getRequestInterceptors()
Returns the ConnectorRequestInterceptor chain for this connector. |
void |
setRequestInterceptors(List<ConnectorRequestInterceptor> requestInterceptors)
Sets the ConnectorRequestInterceptors of this connector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.camunda.connect.spi.Connector |
|---|
createRequest, execute |
| Field Detail |
|---|
protected String connectorId
protected List<ConnectorRequestInterceptor> requestInterceptors
ConnectorRequestInterceptor chain
| Constructor Detail |
|---|
public AbstractConnector(String connectorId)
| Method Detail |
|---|
public String getId()
Connector
getId in interface Connector<Q extends ConnectorRequest<R>>public List<ConnectorRequestInterceptor> getRequestInterceptors()
ConnectorConnectorRequestInterceptor chain for this connector.
The implementation will return the actual list, modifications on the list will
be reflected in the internal connector state. This means that you can use the
returned list to modify the connector's ConnectorRequestInterceptor chain.
getRequestInterceptors in interface Connector<Q extends ConnectorRequest<R>>public void setRequestInterceptors(List<ConnectorRequestInterceptor> requestInterceptors)
ConnectorConnectorRequestInterceptors of this connector. The interceptors
are invoked for all requests created by the connector.
setRequestInterceptors in interface Connector<Q extends ConnectorRequest<R>>public Connector<Q> addRequestInterceptor(ConnectorRequestInterceptor interceptor)
ConnectorConnectorRequestInterceptor to this connector. The interceptor is added
at the end of the interceptor chain. The interceptor is invoked for all requests
created by the connector.
addRequestInterceptor in interface Connector<Q extends ConnectorRequest<R>>public Connector<Q> addRequestInterceptors(Collection<ConnectorRequestInterceptor> interceptors)
ConnectorConnectorRequestInterceptor to this connector. The interceptors
are added at the end of the interceptor chain. The interceptor is invoked for all
requests created by the connector.
addRequestInterceptors in interface Connector<Q extends ConnectorRequest<R>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||