本文整理汇总了Java中org.apache.tomcat.util.digester.Digester.getParser方法的典型用法代码示例。如果您正苦于以下问题:Java Digester.getParser方法的具体用法?Java Digester.getParser怎么用?Java Digester.getParser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.tomcat.util.digester.Digester
的用法示例。
在下文中一共展示了Digester.getParser方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
* Process a "init" event for this Context.
*/
protected void init() {
// Called from StandardContext.init()
Digester contextDigester = createContextDigester();
contextDigester.getParser();
if (log.isDebugEnabled())
log.debug(sm.getString("contextConfig.init"));
context.setConfigured(false);
ok = true;
contextConfig(contextDigester);
createWebXmlDigester(context.getXmlNamespaceAware(),
context.getXmlValidation());
}
示例2: createTldDigester
import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
* Create (if necessary) and return a Digester configured to process the
* tld.
*/
private static synchronized Digester createTldDigester(boolean validation,
boolean blockExternal) {
Digester digester;
int cacheIndex = 0;
if (validation) {
cacheIndex += 1;
}
if (blockExternal) {
cacheIndex += 2;
}
digester = tldDigesters[cacheIndex];
if (digester == null) {
digester = DigesterFactory.newDigester(validation,
true, new TldRuleSet(), blockExternal);
digester.getParser();
tldDigesters[cacheIndex] = digester;
}
return digester;
}
示例3: init
import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
* Process a "init" event for this Context.
*/
protected void init() {
// Called from StandardContext.init()
Digester contextDigester = createContextDigester();
contextDigester.getParser();
if (log.isDebugEnabled())
log.debug(sm.getString("contextConfig.init"));
context.setConfigured(false);
ok = true;
contextConfig(contextDigester);
//创建解析web.xml的digest实例
createWebXmlDigester(context.getXmlNamespaceAware(),
context.getXmlValidation());
}
示例4: init
import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
* Process a "init" event for this Context.
*/
protected void init() {
// Called from StandardContext.init()
Digester contextDigester = createContextDigester();
contextDigester.getParser();
if (log.isDebugEnabled())
log.debug(sm.getString("contextConfig.init"));
context.setConfigured(false);
ok = true;
contextConfig(contextDigester);
createWebXmlDigester(context.getXmlNamespaceAware(), context.getXmlValidation());
}
示例5: createTldDigester
import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
* Create (if necessary) and return a Digester configured to process the
* tld.
*/
private static synchronized Digester createTldDigester(boolean validation, boolean blockExternal) {
Digester digester;
int cacheIndex = 0;
if (validation) {
cacheIndex += 1;
}
if (blockExternal) {
cacheIndex += 2;
}
digester = tldDigesters[cacheIndex];
if (digester == null) {
digester = DigesterFactory.newDigester(validation, true, new TldRuleSet(), blockExternal);
digester.getParser();
tldDigesters[cacheIndex] = digester;
}
return digester;
}