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

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


 
  protected void doStart() throws Exception
  {   
    super.doStart();
       
        Context servletContext = ContextHandler.getCurrentContext();
        _context = servletContext == null ? null: (SipAppContext) servletContext.getContextHandler();
       
        if (_context == null)
            Log.warn("Null context for sip handler: " + this);
       
        if (_sipServlets != null && _sipServlets.length > 0)
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


    /* ------------------------------------------------------------ */
    public static SecurityHandler getCurrentSecurityHandler()
    {
        Context context = ContextHandler.getCurrentContext();
        if (context==null)
            return null;
       
        SecurityHandler security = context.getContextHandler().getChildHandlerByClass(SecurityHandler.class);
        return security;
    }
View Full Code Here

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

        if (_context!=null)
            _aliases=_context.isAliases();

        if (!_aliases && !FileResource.getCheckAliases())
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

  private class WebAppContextListener implements Listener {

    @Override
    public void lifeCycleStarted(LifeCycle event) {
      WebAppContext context = (WebAppContext) event;
      Context servletContext = context.getServletContext();
      injector = (Injector) servletContext.getAttribute(Injector.class.getName());
    }
View Full Code Here

      if (welcomeFiles != null && target.endsWith("/")) {
        for (String welcomeFile : welcomeFiles) {
          String path = target;
          path += welcomeFile;
          Context context = _context.getServletContext();
          URL resource = context.getResource(path);
          if (resource != null) {
            target = path;
            baseRequest.setPathInfo(target);
            _context.handle(target, baseRequest, request, response);
            return;
View Full Code Here

  private class WebAppContextListener implements Listener {

    @Override
    public void lifeCycleStarted(LifeCycle event) {
      WebAppContext context = (WebAppContext) event;
      Context servletContext = context.getServletContext();
      injector = (Injector) servletContext.getAttribute(Injector.class.getName());
    }
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.