org.jboss.resteasy.plugins.interceptors
Class SecurityInterceptor

java.lang.Object
  extended by org.jboss.resteasy.plugins.interceptors.SecurityInterceptor
All Implemented Interfaces:
AcceptedByMethod, PreProcessInterceptor

public class SecurityInterceptor
extends Object
implements PreProcessInterceptor, AcceptedByMethod

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  boolean denyAll
           
protected  String[] rolesAllowed
           
 
Constructor Summary
SecurityInterceptor()
           
 
Method Summary
 boolean accept(Class declaring, Method method)
           
 ServerResponse preProcess(HttpRequest request, ResourceMethod method)
          Preprocess resource method invocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rolesAllowed

protected String[] rolesAllowed

denyAll

protected boolean denyAll
Constructor Detail

SecurityInterceptor

public SecurityInterceptor()
Method Detail

accept

public boolean accept(Class declaring,
                      Method method)
Specified by:
accept in interface AcceptedByMethod

preProcess

public ServerResponse preProcess(HttpRequest request,
                                 ResourceMethod method)
                          throws Failure,
                                 WebApplicationException
Description copied from interface: PreProcessInterceptor
Preprocess resource method invocation

Specified by:
preProcess in interface PreProcessInterceptor
Returns:
null unless the interceptor is returning its own response
Throws:
Failure
WebApplicationException


Copyright © 2011. All Rights Reserved.