All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.spi.interception.PreProcessInterceptor Maven / Gradle / Ivy

There is a newer version: 4.0.0.Beta5
Show newest version
package org.jboss.resteasy.spi.interception;

import org.jboss.resteasy.core.ResourceMethodInvoker;
import org.jboss.resteasy.core.ServerResponse;
import org.jboss.resteasy.spi.Failure;
import org.jboss.resteasy.spi.HttpRequest;

import javax.ws.rs.WebApplicationException;

/**
 * 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. * * @author Bill Burke * @version $Revision: 1 $ * * @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. * * @see jaxrs-api */ @Deprecated public interface PreProcessInterceptor { /** * Preprocess resource method invocation * * @param request * @return null unless the interceptor is returning its own response */ ServerResponse preProcess(HttpRequest request, ResourceMethodInvoker method) throws Failure, WebApplicationException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy