org.apache.jasper.compiler.TldLocationsCache Java Examples

The following examples show how to use org.apache.jasper.compiler.TldLocationsCache. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JspC.java    From Tomcat7.0.67 with Apache License 2.0 6 votes vote down vote up
protected void initServletContext(ClassLoader classLoader)
        throws IOException, JasperException {
    // TODO: should we use the Ant Project's log?
    PrintWriter log = new PrintWriter(System.out);
    URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
    context = new JspCServletContext(log, resourceBase, classLoader);
    if (isValidateTld()) {
        context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
    }
    if (isValidateXml()) {
        context.setInitParameter(Constants.XML_VALIDATION_INIT_PARAM, "true");
    }
    context.setInitParameter(Constants.XML_BLOCK_EXTERNAL_INIT_PARAM,
            String.valueOf(isBlockExternal()));

    tldLocationsCache = TldLocationsCache.getInstance(context);
    rctxt = new JspRuntimeContext(context, this);
    jspConfig = new JspConfig(context);
    tagPluginManager = new TagPluginManager(context);
}
 
Example #2
Source File: JspC.java    From tomcatsrc with Apache License 2.0 6 votes vote down vote up
protected void initServletContext(ClassLoader classLoader)
        throws IOException, JasperException {
    // TODO: should we use the Ant Project's log?
    PrintWriter log = new PrintWriter(System.out);
    URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
    context = new JspCServletContext(log, resourceBase, classLoader);
    if (isValidateTld()) {
        context.setInitParameter(Constants.XML_VALIDATION_TLD_INIT_PARAM, "true");
    }
    if (isValidateXml()) {
        context.setInitParameter(Constants.XML_VALIDATION_INIT_PARAM, "true");
    }
    context.setInitParameter(Constants.XML_BLOCK_EXTERNAL_INIT_PARAM,
            String.valueOf(isBlockExternal()));

    tldLocationsCache = TldLocationsCache.getInstance(context);
    rctxt = new JspRuntimeContext(context, this);
    jspConfig = new JspConfig(context);
    tagPluginManager = new TagPluginManager(context);
}
 
Example #3
Source File: JspC.java    From Tomcat7.0.67 with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public TldLocationsCache getTldLocationsCache() {
    return tldLocationsCache;
}
 
Example #4
Source File: EmbeddedServletOptions.java    From Tomcat7.0.67 with Apache License 2.0 4 votes vote down vote up
@Override
public TldLocationsCache getTldLocationsCache() {
    return tldLocationsCache;
}
 
Example #5
Source File: EmbeddedServletOptions.java    From Tomcat7.0.67 with Apache License 2.0 4 votes vote down vote up
public void setTldLocationsCache( TldLocationsCache tldC ) {
    tldLocationsCache = tldC;
}
 
Example #6
Source File: JspC.java    From tomcatsrc with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public TldLocationsCache getTldLocationsCache() {
    return tldLocationsCache;
}
 
Example #7
Source File: EmbeddedServletOptions.java    From tomcatsrc with Apache License 2.0 4 votes vote down vote up
@Override
public TldLocationsCache getTldLocationsCache() {
    return tldLocationsCache;
}
 
Example #8
Source File: EmbeddedServletOptions.java    From tomcatsrc with Apache License 2.0 4 votes vote down vote up
public void setTldLocationsCache( TldLocationsCache tldC ) {
    tldLocationsCache = tldC;
}
 
Example #9
Source File: Options.java    From Tomcat7.0.67 with Apache License 2.0 2 votes vote down vote up
/**
 * The cache for the location of the TLD's
 * for the various tag libraries 'exposed'
 * by the web application.
 * A tag library is 'exposed' either explicitly in 
 * web.xml or implicitly via the uri tag in the TLD 
 * of a taglib deployed in a jar file (WEB-INF/lib).
 *
 * @return the instance of the TldLocationsCache
 * for the web-application.
 */
public TldLocationsCache getTldLocationsCache();
 
Example #10
Source File: Options.java    From tomcatsrc with Apache License 2.0 2 votes vote down vote up
/**
 * The cache for the location of the TLD's
 * for the various tag libraries 'exposed'
 * by the web application.
 * A tag library is 'exposed' either explicitly in 
 * web.xml or implicitly via the uri tag in the TLD 
 * of a taglib deployed in a jar file (WEB-INF/lib).
 *
 * @return the instance of the TldLocationsCache
 * for the web-application.
 */
public TldLocationsCache getTldLocationsCache();