Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/interception/PreProcessInterceptor.java

raw symbols SCIP
1 package org.jboss.resteasy.spi.interception;
2
3 import org.jboss.resteasy.core.ResourceMethodInvoker;
4 import org.jboss.resteasy.core.ServerResponse;
5 import org.jboss.resteasy.spi.Failure;
6 import org.jboss.resteasy.spi.HttpRequest;
7
8 import javax.ws.rs.WebApplicationException;
9
10 /**
11 * Executed before resource method (not resource locator methods though!)
12 * <p/>
13 * The interceptor can decide to return its own response. This will result in not invoking the resource method.
14 *
15 * @author <a href="mailto:[email protected]">Bill Burke</a>
16 * @version $Revision: 1 $
17 *
18 * @deprecated The Resteasy interceptor facility introduced in release 2.x
19 * is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.
20 *
21 * @see jaxrs-api (https://jcp.org/en/jsr/detail?id=339)
22 */
23 @Deprecated
24 public interface PreProcessInterceptor
25 {
26 /**
27 * Preprocess resource method invocation
28 *
29 * @param request
30 * @return null unless the interceptor is returning its own response
31 */
32 ServerResponse preProcess(HttpRequest request, ResourceMethodInvoker method) throws Failure, WebApplicationException;
33 }