org.springframework.security.taglibs.authz
Class JspAuthorizeTag

java.lang.Object
  extended by org.springframework.security.taglibs.authz.AbstractAuthorizeTag
      extended by 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 JSP Tag implementation of AbstractAuthorizeTag.

Since:
3.1.0
See Also:
AbstractAuthorizeTag

Field Summary
protected  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
JspAuthorizeTag()
           
 
Method Summary
protected  EvaluationContext createExpressionEvaluationContext(SecurityExpressionHandler<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.
 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.
 String getVar()
           
 void release()
           
 void setId(String id)
           
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
           
 void setParent(javax.servlet.jsp.tagext.Tag parent)
           
 void setVar(String var)
           
 
Methods inherited from class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
authorize, authorizeUsingAccessExpression, authorizeUsingGrantedAuthorities, authorizeUsingUrlCheck, getAccess, getIfAllGranted, getIfAnyGranted, getIfNotGranted, getMethod, getUrl, setAccess, setIfAllGranted, setIfAnyGranted, setIfNotGranted, setMethod, setUrl
 
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 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 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 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 String getId()

setId

public void setId(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 String getVar()

setVar

public void setVar(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