protected void doStart() throws Exception { super.doStart(); _servletContext=ContextHandler.getCurrentContext(); }
public static ContextHandler getCurrentWebAppContext() { ContextHandler.SContext context=ContextHandler.getCurrentContext(); if (context!=null) { ContextHandler handler = context.getContextHandler(); if (handler instanceof WebAppContext) return (ContextHandler)handler; } return null; }
public void doStart() throws Exception { SContext scontext = ContextHandler.getCurrentContext(); _context = (scontext==null?null:scontext.getContextHandler()); super.doStart(); }
protected synchronized void doStart() throws Exception { _servletContext=ContextHandler.getCurrentContext(); _contextHandler=_servletContext==null?null:_servletContext.getContextHandler(); updateNameMappings(); updateMappings(); if(_filterChainsCached) _chainCache= new HashMap[]{null,new HashMap(),new HashMap(),null,new HashMap(),null,null,null,new HashMap()}; super.doStart(); if (_contextHandler==null || !(_contextHandler instanceof Context)) initialize(); }
if (ContextHandler.getCurrentContext() != null) loader = ContextHandler.getCurrentContext().getContextHandler().getClassLoader();
if (ContextHandler.getCurrentContext() != null) loader = ContextHandler.getCurrentContext().getContextHandler().getClassLoader();
public void doStart() throws Exception _context=ContextHandler.getCurrentContext(); _loader=Thread.currentThread().getContextClassLoader();
_realm=((SecurityHandler)(ContextHandler.getCurrentContext() .getContextHandler().getChildHandlerByClass(SecurityHandler.class))).getUserRealm();
UserRealm[] realms=ContextHandler.getCurrentContext().getContextHandler().getServer().getUserRealms();