@Override public void setPath(String path) { if (_context != null && _context.getContextHandler().isAvailable()) throw new IllegalStateException("CookieConfig cannot be set after ServletContext is started"); _sessionPath=path; }
protected void illegalStateIfContextStarted() { if (_servletHandler!=null) { ContextHandler.Context context=(ContextHandler.Context)_servletHandler.getServletContext(); if (context!=null && context.getContextHandler().isStarted()) throw new IllegalStateException("Started"); } }
protected void illegalStateIfContextStarted() { if (_servletHandler!=null) { ServletContext context=_servletHandler.getServletContext(); if ((context instanceof ContextHandler.Context) && ((ContextHandler.Context)context).getContextHandler().isStarted()) throw new IllegalStateException("Started"); } }
public static SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; return context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); }
public static SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; SecurityHandler security = context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); return security; }
@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()) throw new IllegalStateException("Alias checking disabled"); super.doStart(); }
Server getServer(ServletConfig config, ServletContext context) { ContextHandler.Context c = (ContextHandler.Context)context; ContextHandler h = c.getContextHandler(); return h.getServer(); }
public static WebAppContext getCurrentWebAppContext() { ContextHandler.Context context=ContextHandler.getCurrentContext(); if (context!=null) { ContextHandler handler = context.getContextHandler(); if (handler instanceof WebAppContext) return (WebAppContext)handler; } return null; }
public ContextHandler getContextHandler() { final AsyncEventState event=_event; if (event!=null) return ((Context)event.getServletContext()).getContextHandler(); return null; }
public void run() { ((Context)event.getServletContext()).getContextHandler().handle(run); } });
@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()) throw new IllegalStateException("Alias checking disabled"); super.doStart(); }
public static WebAppContext getCurrentWebAppContext() { ContextHandler.Context context=ContextHandler.getCurrentContext(); if (context!=null) { ContextHandler handler = context.getContextHandler(); if (handler instanceof WebAppContext) return (WebAppContext)handler; } return null; }
@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()) throw new IllegalStateException("Alias checking disabled"); super.doStart(); }
public static WebAppContext getCurrentWebAppContext() { ContextHandler.Context context=ContextHandler.getCurrentContext(); if (context!=null) { ContextHandler handler = context.getContextHandler(); if (handler instanceof WebAppContext) return (WebAppContext)handler; } return null; }
public void run() { ((Context)event.getServletContext()).getContextHandler().handle(run); } });
Server getServer(ServletConfig config, ServletContext context) { ContextHandler.Context c = (ContextHandler.Context)context; ContextHandler h = c.getContextHandler(); return h.getServer(); }
public ContextHandler getContextHandler() { final AsyncEventState event=_event; if (event!=null) return ((Context)event.getServletContext()).getContextHandler(); return null; }
public static SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; SecurityHandler security = context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); return security; }
public static SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; return context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); }
public static WebAppContext getCurrentWebAppContext() { ContextHandler.Context context=ContextHandler.getCurrentContext(); if (context!=null) { ContextHandler handler = context.getContextHandler(); if (handler instanceof WebAppContext) return (WebAppContext)handler; } return null; }