当前位置: 首页>>代码示例>>Java>>正文


Java Digester.getParser方法代码示例

本文整理汇总了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());
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:20,代码来源:ContextConfig.java

示例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;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:25,代码来源:TldConfig.java

示例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());
}
 
开发者ID:sunmingshuai,项目名称:apache-tomcat-7.0.73-with-comment,代码行数:21,代码来源:ContextConfig.java

示例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());
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:19,代码来源:ContextConfig.java

示例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;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:23,代码来源:TldConfig.java


注:本文中的org.apache.tomcat.util.digester.Digester.getParser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。