org.apache.catalina.startup

Class DigesterFactory

public class DigesterFactory extends Object

Wrapper class around the Digester that hide Digester's initialization details

Author: Jean-Francois Arcand

Field Summary
protected static Loglog
The log.
Method Summary
protected static voidconfigureSchema(Digester digester)
Turn on DTD and/or validation (based on the parser implementation)
static DigesternewDigester()
Create a Digester parser with no Rule associated and XML validation turned off.
static DigesternewDigester(RuleSet rule)
Create a Digester parser with XML validation turned off.
static DigesternewDigester(boolean xmlValidation, boolean xmlNamespaceAware, RuleSet rule)
Create a Digester parser.
protected static voidregister(String resourceURL, String resourcePublicId)
Load the resource and add it to the resolver.
protected static voidregisterLocalSchema()
Utilities used to force the parser to use local schema, when available, instead of the schemaLocation XML element.

Field Detail

log

protected static Log log
The log.

Method Detail

configureSchema

protected static void configureSchema(Digester digester)
Turn on DTD and/or validation (based on the parser implementation)

newDigester

public static Digester newDigester()
Create a Digester parser with no Rule associated and XML validation turned off.

newDigester

public static Digester newDigester(RuleSet rule)
Create a Digester parser with XML validation turned off.

Parameters: rule an instance of RuleSet used for parsing the xml.

newDigester

public static Digester newDigester(boolean xmlValidation, boolean xmlNamespaceAware, RuleSet rule)
Create a Digester parser.

Parameters: xmlValidation turn on/off xml validation xmlNamespaceAware turn on/off namespace validation rule an instance of RuleSet used for parsing the xml.

register

protected static void register(String resourceURL, String resourcePublicId)
Load the resource and add it to the resolver.

registerLocalSchema

protected static void registerLocalSchema()
Utilities used to force the parser to use local schema, when available, instead of the schemaLocation XML element.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.