Package org.opensaml.core.xml.config
Class GlobalParserPoolInitializer
java.lang.Object
org.opensaml.core.xml.config.GlobalParserPoolInitializer
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig property prefix for XML processing.static final StringConfig property name: XML element attribute limit.static final StringConfig property name: XML max element depth.static final StringConfig property default: XML element attribute limit: 30.private org.slf4j.LoggerLogger.static final StringConfig property default: XML max element depth: 25. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Perform the initialization process encompassed by the implementation.
-
Field Details
-
CONFIG_PROP_PREFIX_XML
Config property prefix for XML processing.- See Also:
-
CONFIG_PROPERTY_XML_ELEMENT_ATTRIBUTE_LIMIT
Config property name: XML element attribute limit.- See Also:
-
ELEMENT_ATTRIBUTE_LIMIT_DEFAULT
Config property default: XML element attribute limit: 30.- See Also:
-
CONFIG_PROPERTY_XML_MAX_ELEMENT_DEPTH
Config property name: XML max element depth.- See Also:
-
MAX_ELEMENT_DEPTH_DEFAULT
Config property default: XML max element depth: 25.- See Also:
-
log
@Nonnull private org.slf4j.Logger logLogger.
-
-
Constructor Details
-
GlobalParserPoolInitializer
public GlobalParserPoolInitializer()
-
-
Method Details
-
init
Perform the initialization process encompassed by the implementation.- Specified by:
initin interfaceInitializer- Throws:
InitializationException- if initialization could not be completed successfully
-