src.java.org.codehaus.groovy.grails.plugins.springsecurity
Class GrailsAccessDeniedHandlerImpl

AccessDeniedHandler for redirect to errorPage (not RequestDispatcher#forward).

author:
T.Yamamoto
author:
Burt Beckwith

Field Summary
 String ajaxErrorPage
           
 String ajaxHeader
           
 String errorPage
           
 PortResolver portResolver
           
 
Constructor Summary
GrailsAccessDeniedHandlerImpl()
           
 
Method Summary
void handle(ServletRequest req, ServletResponse res, AccessDeniedException e)
          
boolean isLoggedIn()
          
void setAjaxErrorPage(String page)
           Dependency injection for the Ajax error page, e.g.
void setAjaxHeader(String header)
           Dependency injection for the Ajax header name; defaults to 'X-Requested-With'.
void setErrorPage(String page)
           Dependency injection for the error page, e.g.
 

Constructor Detail

GrailsAccessDeniedHandlerImpl

GrailsAccessDeniedHandlerImpl()


Method Detail

handle

public void handle(ServletRequest req, ServletResponse res, AccessDeniedException e)


isLoggedIn

boolean isLoggedIn()


setAjaxErrorPage

public void setAjaxErrorPage(String page)
Dependency injection for the Ajax error page, e.g. '/login/deniedAjax'.
param:
page the page


setAjaxHeader

public void setAjaxHeader(String header)
Dependency injection for the Ajax header name; defaults to 'X-Requested-With'.
param:
header the header name


setErrorPage

public void setErrorPage(String page)
Dependency injection for the error page, e.g. '/login/denied'.
param:
page the page