Class JspAuthorizeTag

java.lang.Object
org.springframework.security.taglibs.authz.AbstractAuthorizeTag
org.springframework.security.taglibs.authz.JspAuthorizeTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag

public class JspAuthorizeTag extends AbstractAuthorizeTag implements jakarta.servlet.jsp.tagext.Tag
A JSP Tag implementation of AbstractAuthorizeTag.
Since:
3.1.0
See Also:
  • Field Details

    • pageContext

      protected jakarta.servlet.jsp.PageContext pageContext
    • id

      protected String id
  • Constructor Details

    • JspAuthorizeTag

      public JspAuthorizeTag()
  • Method Details

    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Invokes the base class AbstractAuthorizeTag.authorize() method to decide if the body of the tag should be skipped or not.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Returns:
      Tag.SKIP_BODY or Tag.EVAL_BODY_INCLUDE
      Throws:
      jakarta.servlet.jsp.JspException
    • createExpressionEvaluationContext

      protected org.springframework.expression.EvaluationContext createExpressionEvaluationContext(SecurityExpressionHandler<FilterInvocation> handler)
      Description copied from class: AbstractAuthorizeTag
      Allows the EvaluationContext to be customized for variable lookup etc.
      Overrides:
      createExpressionEvaluationContext in class AbstractAuthorizeTag
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Default processing of the end tag returning EVAL_PAGE.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Returns:
      EVAL_PAGE
      Throws:
      jakarta.servlet.jsp.JspException
      See Also:
      • Tag.doEndTag()
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getParent

      public jakarta.servlet.jsp.tagext.Tag getParent()
      Specified by:
      getParent in interface jakarta.servlet.jsp.tagext.Tag
    • setParent

      public void setParent(jakarta.servlet.jsp.tagext.Tag parent)
      Specified by:
      setParent in interface jakarta.servlet.jsp.tagext.Tag
    • getVar

      public String getVar()
    • setVar

      public void setVar(String var)
    • release

      public void release()
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
    • setPageContext

      public void setPageContext(jakarta.servlet.jsp.PageContext pageContext)
      Specified by:
      setPageContext in interface jakarta.servlet.jsp.tagext.Tag
    • getRequest

      protected jakarta.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 class AbstractAuthorizeTag
    • getResponse

      protected jakarta.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 class AbstractAuthorizeTag
    • getServletContext

      protected jakarta.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 class AbstractAuthorizeTag