public FacesEnvironment withWebRoot(File root) { checkNotInitialized(); webRoot = root; return this; }
public FacesEnvironment withWebRoot(File root) { checkNotInitialized(); webRoot = root; return this; }
/** * <p class="changed_added_4_0"> * </p> * * @param name * @param value * @see org.jboss.test.faces.staging.StagingServer#addInitParameter(java.lang.String, java.lang.String) */ public FacesEnvironment withInitParameter(String name, String value) { checkNotInitialized(); this.facesServer.addInitParameter(name, value); return this; }
/** * <p class="changed_added_4_0"> * </p> * * @param root * @return */ public FacesEnvironment withWebRoot(String root) { checkNotInitialized(); return withWebRoot(FacesEnvironment.class.getClassLoader().getResource(root)); }
/** * <p class="changed_added_4_0"> * </p> * * @param root * @return */ public FacesEnvironment withWebRoot(String root) { checkNotInitialized(); return withWebRoot(FacesEnvironment.class.getClassLoader().getResource(root)); }
/** * <p class="changed_added_4_0"> * </p> * * @param name * @param value * @see org.jboss.test.faces.staging.StagingServer#addInitParameter(java.lang.String, java.lang.String) */ public FacesEnvironment withInitParameter(String name, String value) { checkNotInitialized(); this.facesServer.addInitParameter(name, value); return this; }
/** * <p class="changed_added_4_0"> * </p> * * @param path * @param resource * @see org.jboss.test.faces.staging.StagingServer#addResource(java.lang.String, java.net.URL) */ public FacesEnvironment withWebRoot(URL root) { checkNotInitialized(); this.facesServer.addResourcesFromDirectory("/", root); webRoot = null; return this; }
/** * <p class="changed_added_4_0"> * </p> * * @param path * @param resource * @see org.jboss.test.faces.staging.StagingServer#addResource(java.lang.String, java.net.URL) */ public FacesEnvironment withWebRoot(URL root) { checkNotInitialized(); this.facesServer.addResourcesFromDirectory("/", root); webRoot = null; return this; }
public FacesEnvironment withFilter(String name, Filter filter) { checkNotInitialized(); filterContainer = new FilterHolder(facesServletContainer.getMapping(), filter); filterContainer.setName(name); return this; }
public FacesEnvironment withRichFaces() { checkNotInitialized(); try { Filter ajaxFilter = createInstance("org.ajax4jsf.Filter"); withFilter("ajax4jsf", ajaxFilter); webXmlDefault = "org/jboss/test/faces/ajax-web.xml"; return this; } catch (ClassNotFoundException e) { throw new TestException(e); } }
public FacesEnvironment withFilter(String name, Filter filter) { checkNotInitialized(); filterContainer = new FilterHolder(facesServletContainer.getMapping(), filter); filterContainer.setName(name); return this; }
public FacesEnvironment withRichFaces() { checkNotInitialized(); try { Filter ajaxFilter = createInstance("org.ajax4jsf.Filter"); withFilter("ajax4jsf", ajaxFilter); webXmlDefault = "org/jboss/test/faces/ajax-web.xml"; return this; } catch (ClassNotFoundException e) { throw new TestException(e); } }
public FacesEnvironment withSeam() { checkNotInitialized(); try { Filter ajaxFilter = createInstance("org.jboss.seam.servlet.SeamFilter"); withFilter("ajax4jsf", ajaxFilter); EventListener seamListener = createInstance("org.jboss.seam.servlet.SeamListener"); facesServer.addWebListener(seamListener); webXmlDefault = "org/jboss/test/faces/ajax-web.xml"; return this; } catch (ClassNotFoundException e) { throw new TestException(e); } }
public FacesEnvironment withSeam() { checkNotInitialized(); try { Filter ajaxFilter = createInstance("org.jboss.seam.servlet.SeamFilter"); withFilter("ajax4jsf", ajaxFilter); EventListener seamListener = createInstance("org.jboss.seam.servlet.SeamListener"); facesServer.addWebListener(seamListener); webXmlDefault = "org/jboss/test/faces/ajax-web.xml"; return this; } catch (ClassNotFoundException e) { throw new TestException(e); } }