Interface AttributePolicy

    • Field Detail

      • IDENTITY_ATTRIBUTE_POLICY

        static final AttributePolicy IDENTITY_ATTRIBUTE_POLICY
        An attribute policy that returns the value unchanged.
      • REJECT_ALL_ATTRIBUTE_POLICY

        static final AttributePolicy REJECT_ALL_ATTRIBUTE_POLICY
        An attribute policy that rejects all values.
    • Method Detail

      • apply

        @Nullable
        String apply​(String elementName,
                     String attributeName,
                     String value)
        Parameters:
        elementName - the lower-case element name.
        attributeName - the lower-case attribute name.
        value - the attribute value without quotes and with HTML entities decoded.
        Returns:
        null to disallow the attribute or the adjusted value if allowed.