Package org.eclipse.jetty.server.handler.ContextHandler

Examples of org.eclipse.jetty.server.handler.ContextHandler.Context


    server.addConnector(connector);
    server.start();
    if (_port == 0) {
      setPort(connector.getLocalPort());
    }
    final Context servletContext = context.getServletContext();
    final WebApplicationContext springContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
    final Map<String, ConnectionManager> cmMap = springContext.getBeansOfType(ConnectionManager.class);
    if (cmMap.size() == 1) {
      WebPushServletContextUtils.setConnectionManager(servletContext, cmMap.values().iterator().next());
    }
View Full Code Here


    /* ------------------------------------------------------------ */
    @Override
    public void doStart()
    throws Exception
    {
        Context scontext = ContextHandler.getCurrentContext();
        _context = (scontext==null?null:scontext.getContextHandler());

        super.doStart();
    }
View Full Code Here

            event=_event;
        }
      
        if (event!=null)
        {
            Context context=((Context)event.getServletContext());
            if (context!=null)
                return context.getContextHandler();
        }
        return null;
    }
View Full Code Here


    /* ------------------------------------------------------------ */
    public static SecurityHandler getCurrentSecurityHandler()
    {
        Context context = ContextHandler.getCurrentContext();
        if (context==null)
            return null;

        return context.getContextHandler().getChildHandlerByClass(SecurityHandler.class);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.server.handler.ContextHandler.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.