org.jboss.resteasy.core
Class ResourceMethodSecurityInterceptor

java.lang.Object
  extended by org.jboss.resteasy.core.ResourceMethodSecurityInterceptor
All Implemented Interfaces:
ResourceMethodInterceptor

public class ResourceMethodSecurityInterceptor
extends java.lang.Object
implements ResourceMethodInterceptor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  boolean denyAll
           
protected  java.lang.String[] rolesAllowed
           
 
Constructor Summary
ResourceMethodSecurityInterceptor()
           
 
Method Summary
 boolean accepted(ResourceMethod resourceMethod)
          Whether or not this ResourceMethod should be intercepted.
 Response invoke(ResourceMethodContext ctx)
           
 
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

ResourceMethodSecurityInterceptor

public ResourceMethodSecurityInterceptor()
Method Detail

accepted

public boolean accepted(ResourceMethod resourceMethod)
Description copied from interface: ResourceMethodInterceptor
Whether or not this ResourceMethod should be intercepted. This is called at deployment time when setting up interceptor chains.

Specified by:
accepted in interface ResourceMethodInterceptor
Returns:

invoke

public Response invoke(ResourceMethodContext ctx)
                throws Failure,
                       ApplicationException,
                       WebApplicationException
Specified by:
invoke in interface ResourceMethodInterceptor
Throws:
Failure
ApplicationException
WebApplicationException


Copyright © 2009. All Rights Reserved.