From 7df2f7235ca826a22b7f7fc5fda94fa938c28ae1 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 23 Jun 2011 09:31:10 +0000 Subject: [PATCH] Don't cache xml parsing config locally, get it from the Context git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138789 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/startup/TldConfig.java | 54 +------------------------ 1 file changed, 2 insertions(+), 52 deletions(-) diff --git a/java/org/apache/catalina/startup/TldConfig.java b/java/org/apache/catalina/startup/TldConfig.java index b05f48cf7..1d39c1aa6 100644 --- a/java/org/apache/catalina/startup/TldConfig.java +++ b/java/org/apache/catalina/startup/TldConfig.java @@ -134,17 +134,6 @@ public final class TldConfig implements LifecycleListener { 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; /** @@ -203,44 +192,6 @@ public final class TldConfig implements LifecycleListener { } } - /** - * 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; } @@ -610,9 +561,8 @@ public final class TldConfig implements LifecycleListener { private void init() { if (tldDigester == null){ - setTldValidation(context.getTldValidation()); - setTldNamespaceAware(context.getTldNamespaceAware()); - tldDigester = createTldDigester(tldNamespaceAware, tldValidation); + tldDigester = createTldDigester(context.getTldNamespaceAware(), + context.getTldValidation()); } } -- 2.11.0