private Digester tldDigester = null;
- /**
- * Attribute value used to turn on/off TLD validation
- */
- private boolean tldValidation = false;
-
-
- /**
- * Attribute value used to turn on/off TLD namespace awareness.
- */
- private boolean tldNamespaceAware = false;
-
private boolean rescan=true;
/**
}
}
- /**
- * Set the validation feature of the XML parser used when
- * parsing xml instances.
- * @param tldValidation true to enable xml instance validation
- */
- public void setTldValidation(boolean tldValidation){
- this.tldValidation = tldValidation;
- }
-
- /**
- * Get the server.xml <host> attribute's xmlValidation.
- * @return true if validation is enabled.
- *
- */
- public boolean getTldValidation(){
- return this.tldValidation;
- }
-
- /**
- * Get the server.xml <host> attribute's xmlNamespaceAware.
- * @return true if namespace awareness is enabled.
- *
- */
- public boolean getTldNamespaceAware(){
- return this.tldNamespaceAware;
- }
-
-
- /**
- * Set the namespace aware feature of the XML parser used when
- * parsing xml instances.
- * @param tldNamespaceAware true to enable namespace awareness
- */
- public void setTldNamespaceAware(boolean tldNamespaceAware){
- this.tldNamespaceAware = tldNamespaceAware;
- }
-
-
public boolean isRescan() {
return rescan;
}
private void init() {
if (tldDigester == null){
- setTldValidation(context.getTldValidation());
- setTldNamespaceAware(context.getTldNamespaceAware());
- tldDigester = createTldDigester(tldNamespaceAware, tldValidation);
+ tldDigester = createTldDigester(context.getTldNamespaceAware(),
+ context.getTldValidation());
}
}