Class GlobalParserPoolInitializer

java.lang.Object
org.opensaml.core.xml.config.GlobalParserPoolInitializer
All Implemented Interfaces:
Initializer

public class GlobalParserPoolInitializer extends Object implements Initializer
An initializer for the global parser pool held by the XMLObjectProviderRegistry.

The ParserPool configured by default here is an instance of BasicParserPool, with the following non-default property values:

  • maxPoolSize = 50
  • builder attribute jdk.xml.elementAttributeLimit = 30
  • builder attribute jdk.xml.maxElementDepth = 25

If a deployment wishes to use a different parser pool implementation, or one configured with different characteristics, they may simply configure a different ParserPool after initialization by retrieving the XMLObjectProviderRegistry from the ConfigurationService.

  • Field Details

    • CONFIG_PROP_PREFIX_XML

      public static final String CONFIG_PROP_PREFIX_XML
      Config property prefix for XML processing.
      See Also:
    • CONFIG_PROPERTY_XML_ELEMENT_ATTRIBUTE_LIMIT

      public static final String CONFIG_PROPERTY_XML_ELEMENT_ATTRIBUTE_LIMIT
      Config property name: XML element attribute limit.
      See Also:
    • ELEMENT_ATTRIBUTE_LIMIT_DEFAULT

      public static final String ELEMENT_ATTRIBUTE_LIMIT_DEFAULT
      Config property default: XML element attribute limit: 30.
      See Also:
    • CONFIG_PROPERTY_XML_MAX_ELEMENT_DEPTH

      public static final String CONFIG_PROPERTY_XML_MAX_ELEMENT_DEPTH
      Config property name: XML max element depth.
      See Also:
    • MAX_ELEMENT_DEPTH_DEFAULT

      public static final String MAX_ELEMENT_DEPTH_DEFAULT
      Config property default: XML max element depth: 25.
      See Also:
    • log

      @Nonnull private org.slf4j.Logger log
      Logger.
  • Constructor Details

    • GlobalParserPoolInitializer

      public GlobalParserPoolInitializer()
  • Method Details