org.appfuse.webapp.interceptor
Class AccessDeniedInterceptor

java.lang.Object
  extended by org.appfuse.webapp.interceptor.AccessDeniedInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class AccessDeniedInterceptor
extends Object
implements com.opensymphony.xwork2.interceptor.Interceptor

Correctly report spring-security's AccessDeniedException thrown from within Struts actions as 403 error. These exceptions can be fired in a call to the service layer, for instance.

Author:
jgarcia
See Also:
Serialized Form

Constructor Summary
AccessDeniedInterceptor()
           
 
Method Summary
 void destroy()
          This method currently does nothing.
 void init()
          This method currently does nothing.
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessDeniedInterceptor

public AccessDeniedInterceptor()
Method Detail

intercept

public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
                 throws Exception
Specified by:
intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
Throws:
Exception

destroy

public void destroy()
This method currently does nothing.

Specified by:
destroy in interface com.opensymphony.xwork2.interceptor.Interceptor

init

public void init()
This method currently does nothing.

Specified by:
init in interface com.opensymphony.xwork2.interceptor.Interceptor


Copyright © 2003-2012. All Rights Reserved.