|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.day.cq.xss.taglib.ProtectBody
com.day.cq.xss.taglib.ProtectStringAsAttribute
public class ProtectStringAsAttribute
This class implements a
| Field Summary |
|---|
| Fields inherited from class com.day.cq.xss.taglib.ProtectBody |
|---|
policy |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ProtectStringAsAttribute()
|
|
| Method Summary | |
|---|---|
int |
doAfterBody()
Executes the XSS removal and sets the cleaned HTML to the request attribute as specified. |
String |
getName()
Get the name of the attribute where the result is saved to. |
void |
setName(String name)
Set the path to the attribute where the result is saved to. |
| Methods inherited from class com.day.cq.xss.taglib.ProtectBody |
|---|
getPolicy, setPolicy |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setPageContext, setParent |
| Constructor Detail |
|---|
public ProtectStringAsAttribute()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - Attribute name
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class ProtectBodyjavax.servlet.jsp.JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||