public abstract class AbstractConnector<Q extends ConnectorRequest<R>,R extends ConnectorResponse> extends Object implements Connector<Q>
| Modifier and Type | Field and Description |
|---|---|
protected String |
connectorId |
protected List<ConnectorRequestInterceptor> |
requestInterceptors
The
ConnectorRequestInterceptor chain |
| Constructor and Description |
|---|
AbstractConnector(String connectorId) |
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRequest, executeprotected String connectorId
protected List<ConnectorRequestInterceptor> requestInterceptors
ConnectorRequestInterceptor chainpublic AbstractConnector(String connectorId)
public String getId()
ConnectorgetId 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>>Copyright © 2014–2019 Camunda Services GmbH. All rights reserved.