public interface AdapterMonitor extends RegisteredService, Monitor
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
onError(ActivityRuntimeContext context,
java.lang.Throwable t)
Called when an error is encountered.
|
default java.lang.Object |
onInvoke(ActivityRuntimeContext context,
java.lang.Object request,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Object connection)
Called after onRequest(), but before the service is actually invoked.
|
default java.lang.Object |
onRequest(ActivityRuntimeContext context,
java.lang.Object request,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Object connection)
Called when the request is created.
|
default java.lang.Object |
onResponse(ActivityRuntimeContext context,
java.lang.Object response,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Object connection)
Called when the response is received.
|
default java.lang.Object onRequest(ActivityRuntimeContext context, java.lang.Object request, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Object connection)
context
- The workflow runtime context of the adapter activityrequest
- The request message content (String, XMLBean, JAXB Element, JSONObject, etc).headers
- Protocol header values. May be modified by the monitor.default java.lang.Object onInvoke(ActivityRuntimeContext context, java.lang.Object request, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Object connection)
context
- The workflow runtime context of the adapter activityrequest
- Outgoing request message content (String, XMLBean, JAXB Element, JSONObject, etc).headers
- protocol headersdefault java.lang.Object onResponse(ActivityRuntimeContext context, java.lang.Object response, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Object connection)
context
- The workflow runtime context of the adapter activityresponse
- The response that was received from the external system. (String, XMLBean, JAXB Element, JSONObject, etc).headers
- Protocol headers for the incoming response. New headers can be injected by the monitor.connection
- Connection used in adapterdefault java.lang.String onError(ActivityRuntimeContext context, java.lang.Throwable t)
context
- adapter workflow contextt
- error that was encounteredCopyright © 2019 CenturyLink, Inc.