Class ProtectBody

All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag
Direct Known Subclasses:
ProtectStringAsAttribute

@Deprecated public class ProtectBody extends BodyTagSupport
Deprecated.
This class implements a tag that can be used to prevent its body content from containing any XSS stuff.

The policy to be used may be specified using the policy attribute.

See Also:
  • Constructor Details

    • ProtectBody

      public ProtectBody()
      Deprecated.
  • Method Details

    • getPolicy

      public String getPolicy()
      Deprecated.
      Get the path to the policy to be used.
      Returns:
      Path to policy file to use; null, if the default policy has to be used
    • setPolicy

      public void setPolicy(String policy)
      Deprecated.
      Set the path to the policy to be used.
      Parameters:
      policy - Path to policy file to use; null, if the default policy has to be used
    • getContext

      public String getContext()
      Deprecated.
      Get the protection context.
      Returns:
      Attribute name
    • setContext

      public void setContext(String context)
      Deprecated.
      Set the protection context.
      Parameters:
      context - The protection context
    • doAfterBody

      public int doAfterBody() throws JspException
      Deprecated.
      Executes the XSS removal.
      Specified by:
      doAfterBody in interface IterationTag
      Overrides:
      doAfterBody in class BodyTagSupport
      Returns:
      SKIP_BODY
      Throws:
      JspException - if an error occurred while processing this tag
      See Also: