@Deprecated public class ProtectBody extends javax.servlet.jsp.tagext.BodyTagSupport
The policy to be used may be specified using the policy attribute.
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
ProtectBody()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Deprecated.
Executes the XSS removal.
|
java.lang.String |
getContext()
Deprecated.
Get the protection context.
|
java.lang.String |
getPolicy()
Deprecated.
Get the path to the policy to be used.
|
void |
setContext(java.lang.String context)
Deprecated.
Set the protection context.
|
void |
setPolicy(java.lang.String policy)
Deprecated.
Set the path to the policy to be used.
|
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
public java.lang.String getPolicy()
null
, if the default policy has to
be usedpublic void setPolicy(java.lang.String policy)
policy
- Path to policy file to use; null
, if the default policy
has to be usedpublic java.lang.String getContext()
public void setContext(java.lang.String context)
context
- The protection contextpublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Copyright © 2010 - 2020 Adobe. All Rights Reserved