Interface PreProcessInterceptor


  • @Deprecated
    public interface PreProcessInterceptor
    Deprecated.
    The Resteasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.
    Executed before resource method (not resource locator methods though!)

    The interceptor can decide to return its own response. This will result in not invoking the resource method.

    Version:
    $Revision: 1 $
    • Method Detail

      • preProcess

        ServerResponse preProcess​(HttpRequest request,
                                  ResourceMethodInvoker method)
                           throws Failure,
                                  javax.ws.rs.WebApplicationException
        Deprecated.
        Preprocess resource method invocation
        Parameters:
        request -
        Returns:
        null unless the interceptor is returning its own response
        Throws:
        Failure
        javax.ws.rs.WebApplicationException