Class JspAuthorizeTag

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String id  
      protected javax.servlet.jsp.PageContext pageContext  
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • 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​(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> handler)
      Allows the EvaluationContext to be customized for variable lookup etc.
      int doEndTag()
      Default processing of the end tag returning EVAL_PAGE.
      int doStartTag()
      Invokes the base class AbstractAuthorizeTag.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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pageContext

        protected javax.servlet.jsp.PageContext pageContext
      • id

        protected java.lang.String id
    • Constructor Detail

      • JspAuthorizeTag

        public JspAuthorizeTag()
    • Method Detail

      • doStartTag

        public int doStartTag()
                       throws javax.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 javax.servlet.jsp.tagext.Tag
        Returns:
        Tag.SKIP_BODY or Tag.EVAL_BODY_INCLUDE
        Throws:
        javax.servlet.jsp.JspException
      • createExpressionEvaluationContext

        protected org.springframework.expression.EvaluationContext createExpressionEvaluationContext​(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.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 javax.servlet.jsp.JspException
        Default processing of the end tag returning EVAL_PAGE.
        Specified by:
        doEndTag in interface javax.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 interface javax.servlet.jsp.tagext.Tag
      • setParent

        public void setParent​(javax.servlet.jsp.tagext.Tag parent)
        Specified by:
        setParent in interface javax.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 interface javax.servlet.jsp.tagext.Tag
      • setPageContext

        public void setPageContext​(javax.servlet.jsp.PageContext pageContext)
        Specified by:
        setPageContext in interface javax.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 class AbstractAuthorizeTag
      • 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 class AbstractAuthorizeTag
      • 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 class AbstractAuthorizeTag