本文整理汇总了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;
}
示例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 );
}
示例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 );
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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());
}
示例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;
}
示例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);
}