本文整理汇总了Java中org.jboss.resteasy.plugins.server.servlet.ServletBootstrap类的典型用法代码示例。如果您正苦于以下问题:Java ServletBootstrap类的具体用法?Java ServletBootstrap怎么用?Java ServletBootstrap使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ServletBootstrap类属于org.jboss.resteasy.plugins.server.servlet包,在下文中一共展示了ServletBootstrap类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.jboss.resteasy.plugins.server.servlet.ServletBootstrap; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
this.dispatcher = new ODataServletContainerDispatcher();
this.servletContainerDispatcher = dispatcher;
this.bootstrap = new ServletBootstrap(servletConfig);
this.servletContainerDispatcher.init(servletConfig.getServletContext(),bootstrap, this, this);
this.servletContainerDispatcher.getDispatcher().getDefaultContextObjects().put(ServletConfig.class, servletConfig);
this.changeRoot = (servletConfig.getServletContext().getInitParameter("allow-vdb") == null); //$NON-NLS-1$
}
示例2: init
import org.jboss.resteasy.plugins.server.servlet.ServletBootstrap; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException
{
super.init(config);
GuiceBuilder builder = new GuiceBuilder().withRole(new WebappGuiceRole(config));
this.registry = new GuiceRegistry(builder);
dispatcher = new GuicedResteasy(registry, config, new ServletBootstrap(config), true);
startInitialise();
}
示例3: init
import org.jboss.resteasy.plugins.server.servlet.ServletBootstrap; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
this.servletContainerDispatcher = new MultipleServletContainerDispatcher();
ServletBootstrap bootstrap = new ServletBootstrap(servletConfig);
this.servletContainerDispatcher.init(servletConfig.getServletContext(), bootstrap, this, this);
this.servletContainerDispatcher.getDispatcher().getDefaultContextObjects().put(ServletConfig.class, servletConfig);
}