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
A JSP
Tag
implementation of AbstractAuthorizeTag
.- Since:
- 3.1.0
- See Also:
-
Field Summary
Fields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.expression.EvaluationContext
createExpressionEvaluationContext
(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> handler) Allows theEvaluationContext
to be customized for variable lookup etc.int
doEndTag()
Default processing of the end tag returning EVAL_PAGE.int
Invokes the base classAbstractAuthorizeTag.authorize()
method to decide if the body of the tag should be skipped or not.getId()
jakarta.servlet.jsp.tagext.Tag
protected jakarta.servlet.ServletRequest
This method allows subclasses to provide a way to access the ServletRequest according to the rendering technology.protected jakarta.servlet.ServletResponse
This method allows subclasses to provide a way to access the ServletResponse according to the rendering technology.protected jakarta.servlet.ServletContext
This method allows subclasses to provide a way to access the ServletContext according to the rendering technology.getVar()
void
release()
void
void
setPageContext
(jakarta.servlet.jsp.PageContext pageContext) void
setParent
(jakarta.servlet.jsp.tagext.Tag parent) void
Methods inherited from class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
authorize, authorizeUsingAccessExpression, authorizeUsingUrlCheck, getAccess, getMethod, getUrl, setAccess, setMethod, setUrl
-
Field Details
-
pageContext
protected jakarta.servlet.jsp.PageContext pageContext -
id
-
-
Constructor Details
-
JspAuthorizeTag
public JspAuthorizeTag()
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionInvokes the base classAbstractAuthorizeTag.authorize()
method to decide if the body of the tag should be skipped or not.- Specified by:
doStartTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Returns:
Tag.SKIP_BODY
orTag.EVAL_BODY_INCLUDE
- Throws:
jakarta.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 theEvaluationContext
to be customized for variable lookup etc.- Overrides:
createExpressionEvaluationContext
in classAbstractAuthorizeTag
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Returns:
- EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException
- See Also:
-
Tag.doEndTag()
-
getId
-
setId
-
getParent
public jakarta.servlet.jsp.tagext.Tag getParent()- Specified by:
getParent
in interfacejakarta.servlet.jsp.tagext.Tag
-
setParent
public void setParent(jakarta.servlet.jsp.tagext.Tag parent) - Specified by:
setParent
in interfacejakarta.servlet.jsp.tagext.Tag
-
getVar
-
setVar
-
release
public void release()- Specified by:
release
in interfacejakarta.servlet.jsp.tagext.Tag
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext pageContext) - Specified by:
setPageContext
in interfacejakarta.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 classAbstractAuthorizeTag
-
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 classAbstractAuthorizeTag
-
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 classAbstractAuthorizeTag
-