@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpObjects(out,indent, new ClassLoaderDump(getClassLoader()), new DumpableCollection("Systemclasses "+this,system_classes), new DumpableCollection("Serverclasses "+this,server_classes), new DumpableCollection("Configurations "+this,_configurations), new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet()), new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet()), new DumpableCollection("Initparams "+this,getInitParams().entrySet()) ); }
@Override public void dump(Appendable out, String indent) throws IOException { List<String> system_classes=null; if (_systemClasses!=null) { system_classes=new ArrayList<>(_systemClasses); Collections.sort(system_classes); } List<String> server_classes=null; if (_serverClasses!=null) { server_classes=new ArrayList<>(_serverClasses); Collections.sort(server_classes); } dumpBeans(out,indent, Collections.singletonList(new ClassLoaderDump(getClassLoader())), Collections.singletonList(new DumpableCollection("Systemclasses "+this,system_classes)), Collections.singletonList(new DumpableCollection("Serverclasses "+this,server_classes)), Collections.singletonList(new DumpableCollection("Configurations "+this,_configurations)), Collections.singletonList(new DumpableCollection("Handler attributes "+this,((AttributesMap)getAttributes()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Context attributes "+this,((Context)getServletContext()).getAttributeEntrySet())), Collections.singletonList(new DumpableCollection("Initparams "+this,getInitParams().entrySet())) ); }
/** * This constructor is used in the geronimo integration. * * @param parent the parent handler * @param contextPath the context path * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app * @param options the options ({@link ServletContextHandler#SESSIONS} and/or {@link ServletContextHandler#SECURITY}) */ public WebAppContext(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler,int options) { super(parent, contextPath,sessionHandler, securityHandler, servletHandler, errorHandler,options); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
@Override public InputStream getResourceAsStream(String path) { if (devMode) { return super.getResourceAsStream(path.replace("//", "/")); // jawr nonsense } try { Resource resource = WebApplicationSimpleContext.this.getResource(path); if (resource != null && resource.exists()) { return resource.getInputStream(); } } catch (IOException e) { LOG.ignore(e); } return null; } }
@Override public InputStream getResourceAsStream(String path) { if (devMode) { return super.getResourceAsStream(path.replace("//", "/")); // jawr nonsense } try { Resource resource = WebApplicationSimpleContext.this.getResource(path); if (resource != null && resource.exists()) { return resource.getInputStream(); } } catch (IOException e) { logger.ignore(e); } return null; } }
/** * This constructor is used in the geronimo integration. * * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app */ public WebAppContext(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler,int options) { super(parent, contextPath,sessionHandler, securityHandler, servletHandler, errorHandler,options); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * This constructor is used in the geronimo integration. * * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app */ public WebAppContext(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler,int options) { super(parent, contextPath,sessionHandler, securityHandler, servletHandler, errorHandler,options); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * This constructor is used in the geronimo integration. * * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app */ public WebAppContext(SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler) { super(null, sessionHandler, securityHandler, servletHandler, errorHandler); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * This constructor is used in the geronimo integration. * * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app */ public WebAppContext(SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler) { super(null, sessionHandler, securityHandler, servletHandler, errorHandler); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * This constructor is used in the geronimo integration. * * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app */ public WebAppContext(SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler) { super(null, sessionHandler, securityHandler, servletHandler, errorHandler); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(String webApp,String contextPath) { super(null,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setContextPath(contextPath); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param parent The parent HandlerContainer. * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(HandlerContainer parent, String webApp, String contextPath) { super(parent,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(String webApp,String contextPath) { super(null,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setContextPath(contextPath); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param parent The parent HandlerContainer. * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(HandlerContainer parent, String webApp, String contextPath) { super(parent,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
public WebAppContext() { super(SESSIONS|SECURITY); _scontext=new Context(); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
public WebAppContext() { super(SESSIONS|SECURITY); _scontext=new Context(); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param parent The parent HandlerContainer. * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(HandlerContainer parent, String webApp, String contextPath) { super(parent,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * @param contextPath The context path * @param webApp The URL or filename of the webapp directory or war file. */ public WebAppContext(String webApp,String contextPath) { super(null,contextPath,SESSIONS|SECURITY); _scontext=new Context(); setContextPath(contextPath); setWar(webApp); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
public WebAppContext() { super(SESSIONS|SECURITY); _scontext=new Context(); setErrorHandler(new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }
/** * This constructor is used in the geronimo integration. * * @param parent the parent handler * @param contextPath the context path * @param sessionHandler SessionHandler for this web app * @param securityHandler SecurityHandler for this web app * @param servletHandler ServletHandler for this web app * @param errorHandler ErrorHandler for this web app * @param options the options ({@link ServletContextHandler#SESSIONS} and/or {@link ServletContextHandler#SECURITY}) */ public WebAppContext(HandlerContainer parent, String contextPath, SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler,int options) { super(parent, contextPath,sessionHandler, securityHandler, servletHandler, errorHandler,options); _scontext = new Context(); setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler()); setProtectedTargets(__dftProtectedTargets); }