Class ProtectStringAsAttribute

All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag

@Deprecated public class ProtectStringAsAttribute extends ProtectBody
Deprecated.
This class implements a tag that can be used for protecting a String that is provided as a request attribute.
See Also:
  • Constructor Details

    • ProtectStringAsAttribute

      public ProtectStringAsAttribute()
      Deprecated.
  • Method Details

    • getName

      public String getName()
      Deprecated.
      Get the name of the attribute where the result is saved to.
      Returns:
      Attribute name
    • setName

      public void setName(String name)
      Deprecated.
      Set the name to the attribute where the result is saved to.
      Parameters:
      name - Attribute name
    • doAfterBody

      public int doAfterBody() throws JspException
      Deprecated.
      Executes the XSS removal and sets the cleaned HTML to the request attribute as specified.
      Specified by:
      doAfterBody in interface IterationTag
      Overrides:
      doAfterBody in class ProtectBody
      Returns:
      SKIP_BODY
      Throws:
      JspException - if an error occurred while processing this tag
      See Also: