Class ProtectBody

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • ProtectBody

        public ProtectBody()
        Deprecated.
    • Method Detail

      • getPolicy

        public java.lang.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​(java.lang.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 java.lang.String getContext()
        Deprecated.
        Get the protection context.
        Returns:
        Attribute name
      • setContext

        public void setContext​(java.lang.String context)
        Deprecated.
        Set the protection context.
        Parameters:
        context - The protection context