Interface JaxRsResourceInterceptor


public interface JaxRsResourceInterceptor
Interface that allows for customized JaxRsResource call handling. Applications may register interceptors to add pre- or post processing behaviour common to all resource calls without having to modify the resources. The preHandle and postHandle methods will be run in the same thread but the execution of the call will run asynchronously. Any processing of the actual call should be made on the resourceCall observable in postHandle.
  • Method Details

    • preHandle

      default void preHandle(JaxRsResourceInterceptor.JaxRsResourceContext context)
      Intercept the call to a JaxRsResource. Called after the resource has been determined but before the resource has been called.
      Parameters:
      context - describing the request
    • postHandle

      default void postHandle(JaxRsResourceInterceptor.JaxRsResourceContext context, org.reactivestreams.Publisher<Void> resourceCall)
      Intercept the call to a JaxRsResource. Called after the resource call. The resource call results in a Publisher that has not yet been subscribed to.
      Parameters:
      context - describing the request
      resourceCall - the processing of the request