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 java.lang.Object
implements PreProcessInterceptor, AcceptedByMethod

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  boolean denyAll
           
protected  java.lang.String[] rolesAllowed
           
 
Constructor Summary
SecurityInterceptor()
           
 
Method Summary
 boolean accept(java.lang.Class declaring, java.lang.reflect.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 java.lang.String[] rolesAllowed

denyAll

protected boolean denyAll
Constructor Detail

SecurityInterceptor

public SecurityInterceptor()
Method Detail

accept

public boolean accept(java.lang.Class declaring,
                      java.lang.reflect.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 © 2010. All Rights Reserved.