org.codehaus.waffle.action.intercept
Class SecurityMethodInterceptor
java.lang.Object
org.codehaus.waffle.action.intercept.SecurityMethodInterceptor
- All Implemented Interfaces:
- MethodInterceptor
public class SecurityMethodInterceptor
- extends java.lang.Object
- implements MethodInterceptor
This interceptor ensure that only annotated methods are invokable as Actions.
Usage of this will help protect your application against malicious attacks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityMethodInterceptor
public SecurityMethodInterceptor()
accept
public boolean accept(java.lang.reflect.Method actionMethod)
- Specified by:
accept
in interface MethodInterceptor
intercept
public java.lang.Object intercept(ControllerDefinition controllerDefinition,
java.lang.reflect.Method method,
InterceptorChain chain,
java.lang.Object... arguments)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Specified by:
intercept
in interface MethodInterceptor
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Copyright © 2008. All Rights Reserved.