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


Java Options.getJspIdleTimeout方法代码示例

本文整理汇总了Java中org.apache.jasper.Options.getJspIdleTimeout方法的典型用法代码示例。如果您正苦于以下问题:Java Options.getJspIdleTimeout方法的具体用法?Java Options.getJspIdleTimeout怎么用?Java Options.getJspIdleTimeout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jasper.Options的用法示例。


在下文中一共展示了Options.getJspIdleTimeout方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JspServletWrapper

import org.apache.jasper.Options; //导入方法依赖的package包/类
public JspServletWrapper(ServletContext servletContext,
                         Options options,
                         String tagFilePath,
                         TagInfo tagInfo,
                         JspRuntimeContext rctxt,
                         JarResource tagJarResource) {

    this.isTagFile = true;
    this.config = null;        // not used
    this.options = options;
    this.jspUri = tagFilePath;
    this.tripCount = 0;
    unloadByCount = options.getMaxLoadedJsps() > 0 ? true : false;
    unloadByIdle = options.getJspIdleTimeout() > 0 ? true : false;
    unloadAllowed = unloadByCount || unloadByIdle ? true : false;
    ctxt = new JspCompilationContext(jspUri, tagInfo, options,
                                     servletContext, this, rctxt,
                                     tagJarResource);
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:20,代码来源:JspServletWrapper.java

示例2: JspServletWrapper

import org.apache.jasper.Options; //导入方法依赖的package包/类
public JspServletWrapper(ServletContext servletContext,
                         Options options,
                         String tagFilePath,
                         TagInfo tagInfo,
                         JspRuntimeContext rctxt,
                         Jar tagJar) {

    this.isTagFile = true;
    this.config = null;        // not used
    this.options = options;
    this.jspUri = tagFilePath;
    this.tripCount = 0;
    unloadByCount = options.getMaxLoadedJsps() > 0 ? true : false;
    unloadByIdle = options.getJspIdleTimeout() > 0 ? true : false;
    unloadAllowed = unloadByCount || unloadByIdle ? true : false;
    ctxt = new JspCompilationContext(jspUri, tagInfo, options,
                                     servletContext, this, rctxt,
                                     tagJar);
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:20,代码来源:JspServletWrapper.java

示例3: JspServletWrapper

import org.apache.jasper.Options; //导入方法依赖的package包/类
public JspServletWrapper(ServletConfig config, Options options, String jspUri, JspRuntimeContext rctxt) {

		this.isTagFile = false;
		this.config = config;
		this.options = options;
		this.jspUri = jspUri;
		unloadByCount = options.getMaxLoadedJsps() > 0 ? true : false;
		unloadByIdle = options.getJspIdleTimeout() > 0 ? true : false;
		unloadAllowed = unloadByCount || unloadByIdle ? true : false;
		ctxt = new JspCompilationContext(jspUri, options, config.getServletContext(), this, rctxt);
	}
 
开发者ID:how2j,项目名称:lazycat,代码行数:12,代码来源:JspServletWrapper.java

示例4: JspRuntimeContext

import org.apache.jasper.Options; //导入方法依赖的package包/类
/**
 * Create a JspRuntimeContext for a web application context.
 *
 * Loads in any previously generated dependencies from file.
 *
 * @param context ServletContext for web application
 */
public JspRuntimeContext(ServletContext context, Options options) {

    this.context = context;
    this.options = options;

    // Get the parent class loader
    ClassLoader loader = Thread.currentThread().getContextClassLoader();
    if (loader == null) {
        loader = this.getClass().getClassLoader();
    }

    if (log.isDebugEnabled()) {
        if (loader != null) {
            log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is",
                                           loader.toString()));
        } else {
            log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is",
                                           "<none>"));
        }
    }

    parentClassLoader =  loader;
    classpath = initClassPath();

    if (context instanceof org.apache.jasper.servlet.JspCServletContext) {
        codeSource = null;
        permissionCollection = null;
        return;
    }

    if (Constants.IS_SECURITY_ENABLED) {
        SecurityHolder holder = initSecurity();
        codeSource = holder.cs;
        permissionCollection = holder.pc;
    } else {
        codeSource = null;
        permissionCollection = null;
    }

    // If this web application context is running from a
    // directory, start the background compilation thread
    String appBase = context.getRealPath("/");         
    if (!options.getDevelopment()
            && appBase != null
            && options.getCheckInterval() > 0) {
        lastCompileCheck = System.currentTimeMillis();
    }                                            

    if (options.getMaxLoadedJsps() > 0) {
        jspQueue = new FastRemovalDequeue<JspServletWrapper>(options.getMaxLoadedJsps());
        if (log.isDebugEnabled()) {
            log.debug(Localizer.getMessage("jsp.message.jsp_queue_created",
                                           "" + options.getMaxLoadedJsps(), context.getContextPath()));
        }
    }

    /* Init parameter is in seconds, locally we use milliseconds */
    jspIdleTimeout = options.getJspIdleTimeout() * 1000;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:67,代码来源:JspRuntimeContext.java

示例5: JspRuntimeContext

import org.apache.jasper.Options; //导入方法依赖的package包/类
/**
 * Create a JspRuntimeContext for a web application context.
 *
 * Loads in any previously generated dependencies from file.
 *
 * @param context
 *            ServletContext for web application
 */
public JspRuntimeContext(ServletContext context, Options options) {

	this.context = context;
	this.options = options;

	// Get the parent class loader
	ClassLoader loader = Thread.currentThread().getContextClassLoader();
	if (loader == null) {
		loader = this.getClass().getClassLoader();
	}

	if (log.isDebugEnabled()) {
		if (loader != null) {
			log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is", loader.toString()));
		} else {
			log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is", "<none>"));
		}
	}

	parentClassLoader = loader;
	classpath = initClassPath();

	if (context instanceof org.apache.jasper.servlet.JspCServletContext) {
		codeSource = null;
		permissionCollection = null;
		return;
	}

	if (Constants.IS_SECURITY_ENABLED) {
		SecurityHolder holder = initSecurity();
		codeSource = holder.cs;
		permissionCollection = holder.pc;
	} else {
		codeSource = null;
		permissionCollection = null;
	}

	// If this web application context is running from a
	// directory, start the background compilation thread
	String appBase = context.getRealPath("/");
	if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0) {
		lastCompileCheck = System.currentTimeMillis();
	}

	if (options.getMaxLoadedJsps() > 0) {
		jspQueue = new FastRemovalDequeue<JspServletWrapper>(options.getMaxLoadedJsps());
		if (log.isDebugEnabled()) {
			log.debug(Localizer.getMessage("jsp.message.jsp_queue_created", "" + options.getMaxLoadedJsps(),
					context.getContextPath()));
		}
	}

	/* Init parameter is in seconds, locally we use milliseconds */
	jspIdleTimeout = options.getJspIdleTimeout() * 1000;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:64,代码来源:JspRuntimeContext.java

示例6: JspRuntimeContext

import org.apache.jasper.Options; //导入方法依赖的package包/类
/**
 * Create a JspRuntimeContext for a web application context.
 *
 * Loads in any previously generated dependencies from file.
 *
 * @param context ServletContext for web application
 */
public JspRuntimeContext(ServletContext context, Options options) {

    this.context = context;
    this.options = options;

    // Get the parent class loader
    ClassLoader loader = Thread.currentThread().getContextClassLoader();
    if (loader == null) {
        loader = this.getClass().getClassLoader();
    }

    if (log.isDebugEnabled()) {
        if (loader != null) {
            log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is",
                                           loader.toString()));
        } else {
            log.debug(Localizer.getMessage("jsp.message.parent_class_loader_is",
                                           "<none>"));
        }
    }

    parentClassLoader =  loader;
    classpath = initClassPath();

    if (context instanceof org.apache.jasper.servlet.JspCServletContext) {
        codeSource = null;
        permissionCollection = null;
        return;
    }

    if (Constants.IS_SECURITY_ENABLED) {
        SecurityHolder holder = initSecurity();
        codeSource = holder.cs;
        permissionCollection = holder.pc;
    } else {
        codeSource = null;
        permissionCollection = null;
    }

    // If this web application context is running from a
    // directory, start the background compilation thread
    String appBase = context.getRealPath("/");
    if (!options.getDevelopment()
            && appBase != null
            && options.getCheckInterval() > 0) {
        lastCompileCheck = System.currentTimeMillis();
    }

    if (options.getMaxLoadedJsps() > 0) {
        jspQueue = new FastRemovalDequeue<>(options.getMaxLoadedJsps());
        if (log.isDebugEnabled()) {
            log.debug(Localizer.getMessage("jsp.message.jsp_queue_created",
                                           "" + options.getMaxLoadedJsps(), context.getContextPath()));
        }
    }

    /* Init parameter is in seconds, locally we use milliseconds */
    jspIdleTimeout = options.getJspIdleTimeout() * 1000;
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:67,代码来源:JspRuntimeContext.java


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