Java 类org.eclipse.jetty.server.HandlerContainer 实例源码

项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler,int options)
{
    super((ContextHandler.Context)null);
    _options=options;
    _scontext = new Context();
    _sessionHandler = sessionHandler;
    _securityHandler = securityHandler;
    _servletHandler = servletHandler;

    if (contextPath!=null)
        setContextPath(contextPath);

    if (parent instanceof HandlerWrapper)
        ((HandlerWrapper)parent).setHandler(this);
    else if (parent instanceof HandlerCollection)
        ((HandlerCollection)parent).addHandler(this);


    // Link the handlers
    relinkHandlers();

    if (errorHandler!=null)
        setErrorHandler(errorHandler);


    this.addFilter(new FilterHolder(new HTTPAuthFilter()), "/v2/*", EnumSet.allOf(DispatcherType.class));

}
项目:jetty-console    文件:JettyConsoleWebappContext.java   
public JettyConsoleWebappContext(HandlerContainer parent, String webApp, String contextPath) {
    super(parent, webApp, contextPath);
    setConfigurations(new Configuration[]{
            new WebInfConfiguration(),
            new WebXmlConfiguration(),
            new MetaInfConfiguration(),
            new FragmentConfiguration(),
            new EnvConfiguration(),
            new org.eclipse.jetty.plus.webapp.PlusConfiguration(),
            new AnnotationConfiguration(),
            new JettyWebXmlConfiguration()
    });
}
项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, String contextPath)
{
    this(parent,contextPath,null,null,null,null);
}
项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, String contextPath, int options)
{
    this(parent,contextPath,null,null,null,null,options);
}
项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, String contextPath, boolean sessions, boolean security)
{
    this(parent,contextPath,(sessions?SESSIONS:0)|(security?SECURITY:0));
}
项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler)
{
    this(parent,null,sessionHandler,securityHandler,servletHandler,errorHandler);
}
项目:marathon-auth-plugin    文件:ServletContextHandler.java   
public ServletContextHandler(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler)
{
    this(parent,contextPath,sessionHandler,securityHandler,servletHandler,errorHandler,0);
}
项目:leopard    文件:MyJettyWebAppContext.java   
public MyJettyWebAppContext(HandlerContainer parent, List<String> hostList, String war) {
    this.hostList = hostList;
    this.war = war;
    this.init();
}
项目:logsniffer    文件:WebContextWithExtraConfigurations.java   
public WebContextWithExtraConfigurations(final HandlerContainer parent, final String webApp,
        final String contextPath) {
    super(parent, webApp, contextPath);
}