public ApplicationServer getServer() { return environment.getServer(); }
public ApplicationServer getServer() { return environment.getServer(); }
public void setSessionAttribute(String name,Object value) { environment.getServer().getSession().setAttribute(name, value); }
/** * */ protected FacesRule(FacesEnvironment environment){ this.environment = environment; this.environment.getServer().addWebListener(this); }
/** * */ protected FacesRule(FacesEnvironment environment){ this.environment = environment; this.environment.getServer().addWebListener(this); }
public void setContextAttribute(String name,Object value) { environment.getServer().getContext().setAttribute(name, value); }
public FacesRule withListener(EventListener listener) { environment.getServer().addWebListener(listener); return this; }
public FacesRule withListener(EventListener listener) { environment.getServer().addWebListener(listener); return this; }
public void setContextAttribute(String name,Object value) { environment.getServer().getContext().setAttribute(name, value); }
public void setSessionAttribute(String name,Object value) { environment.getServer().getSession().setAttribute(name, value); }
/** * <p class="changed_added_2_0"> * </p> * * @param url * @throws MalformedURLException * @throws FacesException */ public FacesRequest createFacesRequest(String url) throws MalformedURLException, FacesException { FacesRequest request = new FacesRequest(); request.connection = getServer().getConnection(new URL(url)); requests.add(request); return request; }
/** * <p class="changed_added_2_0"> * </p> * * @param url * @throws MalformedURLException * @throws FacesException */ public FacesRequest createFacesRequest(String url) throws MalformedURLException, FacesException { FacesRequest request = new FacesRequest(); request.connection = getServer().getConnection(new URL(url)); requests.add(request); return request; }