|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.spring.security.ui.ZkAccessDeniedHandler
public class ZkAccessDeniedHandler
This implementation pop up an error window and show the provided error page or code 403
Field Summary | |
---|---|
static java.lang.String |
ERROR_403_URL
|
Constructor Summary | |
---|---|
ZkAccessDeniedHandler()
|
Method Summary | |
---|---|
java.lang.String |
getErrorTemplate()
Returns the error template URL. |
java.util.Map |
getErrorTemplateArgs()
Return the error template window arguments Map. |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException accessDeniedException)
|
void |
removeErrorTemplateArg(java.lang.String param)
Remove the specified error template parameter. |
void |
setErrorTemplate(java.lang.String templateURL)
Set the error template URL. |
void |
setErrorTemplateArg(java.lang.String param,
java.lang.Object value)
The argument to be passed into the error window template (see getErrorTemplate() ). |
void |
setErrorTemplateArgs(java.util.Map map)
Sets the error template window arguments Map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_403_URL
Constructor Detail |
---|
public ZkAccessDeniedHandler()
Method Detail |
---|
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) throws java.io.IOException, javax.servlet.ServletException
handle
in interface org.springframework.security.web.access.AccessDeniedHandler
java.io.IOException
javax.servlet.ServletException
public void setErrorTemplateArg(java.lang.String param, java.lang.Object value)
The argument to be passed into the error window template
(see getErrorTemplate()
). If you did not specify own error
window template, the system use the default one.
In error window template, you can customize it by passing arguments into it via this method. And you refer the parameter by specifying in the template window in EL with ${arg.xxx} or in <zscript> with arg.xxx.
If you don't specify your own error window template, you can still customize the default login window template by assign values to following parameters.
param | type | memo | ||||||||
title | String | Login Window Title | ||||||||
width | String | window width | ||||||||
height | String | window height |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |