/** * 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); }
protected WebAppContext newWebApp () { WebAppContext webApp = new WebAppContext(); webApp.setAttribute(OSGiWebappConstants.WATERMARK, OSGiWebappConstants.WATERMARK); //make sure we protect also the osgi dirs specified by OSGi Enterprise spec String[] targets = webApp.getProtectedTargets(); String[] updatedTargets = null; if (targets != null) { updatedTargets = new String[targets.length+OSGiWebappConstants.DEFAULT_PROTECTED_OSGI_TARGETS.length]; System.arraycopy(targets, 0, updatedTargets, 0, targets.length); } else updatedTargets = new String[OSGiWebappConstants.DEFAULT_PROTECTED_OSGI_TARGETS.length]; System.arraycopy(OSGiWebappConstants.DEFAULT_PROTECTED_OSGI_TARGETS, 0, updatedTargets, targets.length, OSGiWebappConstants.DEFAULT_PROTECTED_OSGI_TARGETS.length); webApp.setProtectedTargets(updatedTargets); return webApp; }
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); }
public WebAppContext() { super(SESSIONS|SECURITY); _scontext=new Context(); setErrorHandler(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); }
/** * 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 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); }
/** * @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 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 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 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 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); }
wac.setExtractWAR(false); wac.setCopyWebInf(true); wac.setProtectedTargets(new String[]{"/java", "/javax", "/org", "/net", "/WEB-INF", "/META-INF"}); wac.setTempDirectory(new File("./tmp").getAbsoluteFile()); wac.setServerClasses(new String[] { "org.objectweb.asm.", // hide asm used by jetty