it.eng.spagobi.rest.interceptors
Class SecurityServerInterceptor
java.lang.Object
it.eng.spagobi.rest.interceptors.SecurityServerInterceptor
- All Implemented Interfaces:
- org.jboss.resteasy.spi.interception.PreProcessInterceptor
@Provider
public class SecurityServerInterceptor
- extends java.lang.Object
- implements org.jboss.resteasy.spi.interception.PreProcessInterceptor
The org.jboss.resteasy.spi.interception.PreProcessInterceptor runs after a JAX-RS resource
method is found to invoke on, but before the actual invocation happens
- Author:
- Alberto Ghedin (alberto.ghedin@eng.it)
Method Summary |
org.jboss.resteasy.core.ServerResponse |
preProcess(org.jboss.resteasy.spi.HttpRequest req,
org.jboss.resteasy.core.ResourceMethod arg1)
Preprocess all the REST requests.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityServerInterceptor
public SecurityServerInterceptor()
preProcess
public org.jboss.resteasy.core.ServerResponse preProcess(org.jboss.resteasy.spi.HttpRequest req,
org.jboss.resteasy.core.ResourceMethod arg1)
throws org.jboss.resteasy.spi.Failure,
javax.ws.rs.WebApplicationException
- Preprocess all the REST requests..
Get the UserProfile from the session and checks if has
the grants to execute the service
- Specified by:
preProcess
in interface org.jboss.resteasy.spi.interception.PreProcessInterceptor
- Throws:
org.jboss.resteasy.spi.Failure
javax.ws.rs.WebApplicationException