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 JSPTagimplementation ofAbstractAuthorizeTag.- Since:
- 3.1.0
- See Also:
AbstractAuthorizeTag
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringidprotected javax.servlet.jsp.PageContextpageContext
-
Constructor Summary
Constructors Constructor Description JspAuthorizeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.expression.EvaluationContextcreateExpressionEvaluationContext(SecurityExpressionHandler<FilterInvocation> handler)Allows theEvaluationContextto be customized for variable lookup etc.intdoEndTag()Default processing of the end tag returning EVAL_PAGE.intdoStartTag()Invokes the base classAbstractAuthorizeTag.authorize()method to decide if the body of the tag should be skipped or not.java.lang.StringgetId()javax.servlet.jsp.tagext.TaggetParent()protected javax.servlet.ServletRequestgetRequest()This method allows subclasses to provide a way to access the ServletRequest according to the rendering technology.protected javax.servlet.ServletResponsegetResponse()This method allows subclasses to provide a way to access the ServletResponse according to the rendering technology.protected javax.servlet.ServletContextgetServletContext()This method allows subclasses to provide a way to access the ServletContext according to the rendering technology.java.lang.StringgetVar()voidrelease()voidsetId(java.lang.String id)voidsetPageContext(javax.servlet.jsp.PageContext pageContext)voidsetParent(javax.servlet.jsp.tagext.Tag parent)voidsetVar(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.JspExceptionInvokes the base classAbstractAuthorizeTag.authorize()method to decide if the body of the tag should be skipped or not.- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Returns:
Tag.SKIP_BODYorTag.EVAL_BODY_INCLUDE- Throws:
javax.servlet.jsp.JspException
-
createExpressionEvaluationContext
protected org.springframework.expression.EvaluationContext createExpressionEvaluationContext(SecurityExpressionHandler<FilterInvocation> handler)
Description copied from class:AbstractAuthorizeTagAllows theEvaluationContextto be customized for variable lookup etc.- Overrides:
createExpressionEvaluationContextin classAbstractAuthorizeTag
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspExceptionDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin 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:
getParentin interfacejavax.servlet.jsp.tagext.Tag
-
setParent
public void setParent(javax.servlet.jsp.tagext.Tag parent)
- Specified by:
setParentin 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:
releasein interfacejavax.servlet.jsp.tagext.Tag
-
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContextin interfacejavax.servlet.jsp.tagext.Tag
-
getRequest
protected javax.servlet.ServletRequest getRequest()
Description copied from class:AbstractAuthorizeTagThis method allows subclasses to provide a way to access the ServletRequest according to the rendering technology.- Specified by:
getRequestin classAbstractAuthorizeTag
-
getResponse
protected javax.servlet.ServletResponse getResponse()
Description copied from class:AbstractAuthorizeTagThis method allows subclasses to provide a way to access the ServletResponse according to the rendering technology.- Specified by:
getResponsein classAbstractAuthorizeTag
-
getServletContext
protected javax.servlet.ServletContext getServletContext()
Description copied from class:AbstractAuthorizeTagThis method allows subclasses to provide a way to access the ServletContext according to the rendering technology.- Specified by:
getServletContextin classAbstractAuthorizeTag
-
-