Class JspAuthorizeTag
- java.lang.Object
-
- org.springframework.security.taglibs.authz.AbstractAuthorizeTag
-
- org.springframework.security.taglibs.authz.JspAuthorizeTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class JspAuthorizeTag extends AbstractAuthorizeTag implements javax.servlet.jsp.tagext.Tag
A JSPTag
implementation ofAbstractAuthorizeTag
.- Since:
- 3.1.0
- See Also:
AbstractAuthorizeTag
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
id
protected javax.servlet.jsp.PageContext
pageContext
-
Constructor Summary
Constructors Constructor Description JspAuthorizeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.expression.EvaluationContext
createExpressionEvaluationContext(SecurityExpressionHandler<FilterInvocation> handler)
Allows theEvaluationContext
to be customized for variable lookup etc.int
doEndTag()
Default processing of the end tag returning EVAL_PAGE.int
doStartTag()
Invokes the base classAbstractAuthorizeTag.authorize()
method to decide if the body of the tag should be skipped or not.java.lang.String
getId()
javax.servlet.jsp.tagext.Tag
getParent()
protected javax.servlet.ServletRequest
getRequest()
This method allows subclasses to provide a way to access the ServletRequest according to the rendering technology.protected javax.servlet.ServletResponse
getResponse()
This method allows subclasses to provide a way to access the ServletResponse according to the rendering technology.protected javax.servlet.ServletContext
getServletContext()
This method allows subclasses to provide a way to access the ServletContext according to the rendering technology.java.lang.String
getVar()
void
release()
void
setId(java.lang.String id)
void
setPageContext(javax.servlet.jsp.PageContext pageContext)
void
setParent(javax.servlet.jsp.tagext.Tag parent)
void
setVar(java.lang.String var)
-
Methods inherited from class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
authorize, authorizeUsingAccessExpression, authorizeUsingUrlCheck, getAccess, getMethod, getUrl, setAccess, setMethod, setUrl
-
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
Invokes the base classAbstractAuthorizeTag.authorize()
method to decide if the body of the tag should be skipped or not.- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Returns:
Tag.SKIP_BODY
orTag.EVAL_BODY_INCLUDE
- Throws:
javax.servlet.jsp.JspException
-
createExpressionEvaluationContext
protected org.springframework.expression.EvaluationContext createExpressionEvaluationContext(SecurityExpressionHandler<FilterInvocation> handler)
Description copied from class:AbstractAuthorizeTag
Allows theEvaluationContext
to be customized for variable lookup etc.- Overrides:
createExpressionEvaluationContext
in classAbstractAuthorizeTag
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
Default processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doEndTag()
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getParent
public javax.servlet.jsp.tagext.Tag getParent()
- Specified by:
getParent
in interfacejavax.servlet.jsp.tagext.Tag
-
setParent
public void setParent(javax.servlet.jsp.tagext.Tag parent)
- Specified by:
setParent
in interfacejavax.servlet.jsp.tagext.Tag
-
getVar
public java.lang.String getVar()
-
setVar
public void setVar(java.lang.String var)
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
-
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContext
in interfacejavax.servlet.jsp.tagext.Tag
-
getRequest
protected javax.servlet.ServletRequest getRequest()
Description copied from class:AbstractAuthorizeTag
This method allows subclasses to provide a way to access the ServletRequest according to the rendering technology.- Specified by:
getRequest
in classAbstractAuthorizeTag
-
getResponse
protected javax.servlet.ServletResponse getResponse()
Description copied from class:AbstractAuthorizeTag
This method allows subclasses to provide a way to access the ServletResponse according to the rendering technology.- Specified by:
getResponse
in classAbstractAuthorizeTag
-
getServletContext
protected javax.servlet.ServletContext getServletContext()
Description copied from class:AbstractAuthorizeTag
This method allows subclasses to provide a way to access the ServletContext according to the rendering technology.- Specified by:
getServletContext
in classAbstractAuthorizeTag
-
-