Implement this interface to selectively track API requests that invoke a service in an SoR. It
enables a stakeholder to add their stakeholder token to the tracking token sent to the SoR.
For the Java™ API documentation, see z/OS Connect SPI. This
documentation is also available as a separate file at
<installation_path>/doc/javadoc.oas3.zip.
IBM z/OS Connect provides five points where
interceptors can monitor requests for the API provider, as illustrated in Figure 1. Figure 1. Monitoring interceptor points for the API
provider
preInvoke
Required interface: Interceptor
The preInvoke method is called when a request is received from the client and
initial validation of the request is complete. This method can throw an interceptor exception to
reject the request at this point. For OpenAPI 3 servers, the exception does not cause the request to
be rejected.
preSorInvoke
Required interface: ServiceProviderInterceptor
The preSorInvoke method is called when a request is sent to the SoR.
postSorInvoke
Required interface: ServiceProviderInterceptor
The postSorInvoke method is called when a response is received from the SoR.
postInvoke
Required interface: Interceptor
The postInvoke method is called just before a response is returned to the client.
earlyFailure
Required interface: EarlyFailureInterceptor
The earlyFailure method is called when a request fails validation before the
preInvoke method is called. No other interceptors are called. Early failures can be
caused by errors such as incorrect URLs, or authentication or authorization failures.