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 static SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; return context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); }
/** * Servlet spec 3.1 pg. 147. */ @Override public boolean checkPathsWithUncoveredHttpMethods() { Set<String> paths = getPathsWithUncoveredHttpMethods(); if (paths != null && !paths.isEmpty()) { for (String p:paths) LOG.warn("{} has uncovered http methods for path: {}",ContextHandler.getCurrentContext(), p); if (LOG.isDebugEnabled()) LOG.debug(new Throwable()); return true; } return false; }
ContextHandler.Context context =ContextHandler.getCurrentContext(); if (context!=null) setAuthenticator(authenticatorFactory.getAuthenticator(getServer(),ContextHandler.getCurrentContext(),this, _identityService, _loginService));
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 protected void doStart() throws Exception { super.doStart(); _servletContext=ContextHandler.getCurrentContext(); }
@Override protected void doStart() throws Exception { super.doStart(); _servletContext=ContextHandler.getCurrentContext(); }
@Override protected void doStart() throws Exception { super.doStart(); _servletContext = ContextHandler.getCurrentContext(); }
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 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 protected void doStart() throws Exception { super.doStart(); _servletContext=ContextHandler.getCurrentContext(); }
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; 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 SecurityHandler getCurrentSecurityHandler() { Context context = ContextHandler.getCurrentContext(); if (context==null) return null; return context.getContextHandler().getChildHandlerByClass(SecurityHandler.class); }
@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(); }
@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(); }
@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(); }
@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(); }
@Override public void doStart() throws Exception { Context scontext = ContextHandler.getCurrentContext(); _context = (scontext==null?null:scontext.getContextHandler()); _mimeTypes = _context==null?new MimeTypes():_context.getMimeTypes(); super.doStart(); }