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


Java JettyJasperInitializer类代码示例

本文整理汇总了Java中org.eclipse.jetty.apache.jsp.JettyJasperInitializer的典型用法代码示例。如果您正苦于以下问题:Java JettyJasperInitializer类的具体用法?Java JettyJasperInitializer怎么用?Java JettyJasperInitializer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JettyJasperInitializer类属于org.eclipse.jetty.apache.jsp包,在下文中一共展示了JettyJasperInitializer类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: newWebAppContext

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
static WebAppContext newWebAppContext() throws MalformedURLException {
    final WebAppContext handler = new WebAppContext();
    handler.setContextPath("/");
    handler.setBaseResource(Resource.newResource(webAppRoot()));
    handler.setClassLoader(new URLClassLoader(
            new URL[] {
                    Resource.newResource(new File(webAppRoot(),
                                                  "WEB-INF" + File.separatorChar +
                                                  "lib" + File.separatorChar +
                                                  "hello.jar")).getURI().toURL()
            },
            JettyService.class.getClassLoader()));

    handler.addBean(new ServletContainerInitializersStarter(handler), true);
    handler.setAttribute(
            "org.eclipse.jetty.containerInitializers",
            Collections.singletonList(new ContainerInitializer(new JettyJasperInitializer(), null)));
    return handler;
}
 
开发者ID:line,项目名称:armeria,代码行数:20,代码来源:JettyServiceTest.java

示例2: initializePlugin

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
@Override
public void initializePlugin( PluginManager manager, File pluginDirectory )
{
    for ( final String publicResource : publicResources )
    {
        AuthCheckFilter.addExclude( publicResource );
    }

    // Add the Webchat sources to the same context as the one that's providing the BOSH interface.
    context = new WebAppContext( null, pluginDirectory.getPath() + File.separator + "classes/", "/inverse" );
    context.setClassLoader( this.getClass().getClassLoader() );

    // Ensure the JSP engine is initialized correctly (in order to be able to cope with Tomcat/Jasper precompiled JSPs).
    final List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add( new ContainerInitializer( new JettyJasperInitializer(), null ) );
    context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
    context.setAttribute( InstanceManager.class.getName(), new SimpleInstanceManager());

    HttpBindManager.getInstance().addJettyHandler( context );
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:21,代码来源:InversePlugin.java

示例3: initializePlugin

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
@Override
public void initializePlugin( PluginManager manager, File pluginDirectory )
{
    for ( final String publicResource : publicResources )
    {
        AuthCheckFilter.addExclude( publicResource );
    }

    // Add the Webchat sources to the same context as the one that's providing the BOSH interface.
    context = new WebAppContext( null, pluginDirectory.getPath() + File.separator + "classes", "/candy" );
    context.setClassLoader( this.getClass().getClassLoader() );

    // Ensure the JSP engine is initialized correctly (in order to be able to cope with Tomcat/Jasper precompiled JSPs).
    final List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add( new ContainerInitializer( new JettyJasperInitializer(), null ) );
    context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
    context.setAttribute( InstanceManager.class.getName(), new SimpleInstanceManager());

    HttpBindManager.getInstance().addJettyHandler( context );
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:21,代码来源:CandyPlugin.java

示例4: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
private static List<ContainerInitializer> jspInitializers() {
    JettyJasperInitializer sci = new JettyJasperInitializer();
    ContainerInitializer initializer = new ContainerInitializer(sci, null);
    List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add(initializer);
    return initializers;
}
 
开发者ID:stevespringett,项目名称:Alpine,代码行数:8,代码来源:EmbeddedJettyServer.java

示例5: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
/**
 * Initializer to activate JSP support in Jetty.
 *
 * @return list of initializer to support jsp compiling
 */
private static List<ContainerInitializer> jspInitializers() {

    final JettyJasperInitializer sci = new JettyJasperInitializer();
    final ContainerInitializer initializer = new ContainerInitializer(sci, null);
    final List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add(initializer);
    return initializers;
}
 
开发者ID:gmuecke,项目名称:boutique-de-jus,代码行数:14,代码来源:BoutiqueDeJusWebServer.java

示例6: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
private static List<ContainerInitializer> jspInitializers() {
	JettyJasperInitializer sci = new JettyJasperInitializer();
	ContainerInitializer initializer = new ContainerInitializer(sci, null);
	List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();
	initializers.add(initializer);
	return initializers;
}
 
开发者ID:gustavohbf,项目名称:robotoy,代码行数:8,代码来源:WebServer.java

示例7: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
private List<ContainerInitializer> jspInitializers() {
    JettyJasperInitializer sci = new JettyJasperInitializer();
    ContainerInitializer initializer = new ContainerInitializer(sci, null);
    List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add(initializer);
    return initializers;
}
 
开发者ID:aspectran,项目名称:aspectran,代码行数:8,代码来源:JettyWebAppContext.java

示例8: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
/**
 * Ensure the jsp engine is initialized correctly
 */
private List<ContainerInitializer> jspInitializers() {
	JettyJasperInitializer sci = new JettyJasperInitializer();
	ContainerInitializer initializer = new ContainerInitializer(sci, null);
	List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();
	initializers.add(initializer);
	return initializers;
}
 
开发者ID:logsniffer,项目名称:logsniffer,代码行数:11,代码来源:JettyLauncher.java

示例9: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
private List<ContainerInitializer> jspInitializers() {
	JettyJasperInitializer sci = new JettyJasperInitializer();
	ContainerInitializer initializer = new ContainerInitializer(
			(ServletContainerInitializer) sci, null);
	List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();
	initializers.add(initializer);
	return initializers;
}
 
开发者ID:yahoo,项目名称:mysql_perf_analyzer,代码行数:9,代码来源:App.java

示例10: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
/**
 * Ensure the jsp engine is initialized correctly
 */
private List<ContainerInitializer> jspInitializers()
{
    JettyJasperInitializer sci = new JettyJasperInitializer();
    ContainerInitializer initializer = new ContainerInitializer(sci, null);
    List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();
    initializers.add(initializer);
    return initializers;
}
 
开发者ID:sgsinclair,项目名称:VoyantServer,代码行数:12,代码来源:JettyRunTime.java

示例11: JettyJspParser

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
public JettyJspParser(ServletContextHandler context) {
    this.jasperInitializer = new JettyJasperInitializer();
    this.context = context;
    this.context.setAttribute("org.apache.tomcat.JarScanner", new StandardJarScanner());
}
 
开发者ID:wolfboys,项目名称:opencron,代码行数:6,代码来源:JettyLauncher.java

示例12: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
/**
 * Ensure the JSP engine is initialized correctly
 */
private List<ContainerInitializer> jspInitializers() {
    List<ContainerInitializer> initializers = new ArrayList<>();
    initializers.add(new ContainerInitializer(new JettyJasperInitializer(), null));
    return initializers;
}
 
开发者ID:RWTH-i5-IDSG,项目名称:steve-plugsurfing,代码行数:9,代码来源:SteveAppContext.java

示例13: jspInitializers

import org.eclipse.jetty.apache.jsp.JettyJasperInitializer; //导入依赖的package包/类
static List<ContainerInitializer> jspInitializers() {
    JettyJasperInitializer sci = new JettyJasperInitializer();
    ContainerInitializer initializer = new ContainerInitializer(sci, null);
    return Collections.singletonList(initializer);
}
 
开发者ID:wacai,项目名称:json-template-renderer,代码行数:6,代码来源:Main.java


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