public FacesRequest withViewId(String viewId) { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } this.viewId = viewId; return this; }
public FacesRequest withViewId(String viewId) { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } this.viewId = viewId; return this; }
public FacesRequest finish() { if (!connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.finish(); return this; }
public FacesRequest finish() { if (!connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.finish(); return this; }
public byte[] execute() { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.execute(); return connection.getResponseBody(); }
public byte[] execute() { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.execute(); return connection.getResponseBody(); }
public FacesRequest start() { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.start(); FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); facesContext = facesContextFactory.getFacesContext(facesServer.getContext(), connection.getRequest(), connection.getResponse(), lifecycle); if (null != viewId) { facesContext.setViewRoot(application.getViewHandler().createView(facesContext, viewId)); } return this; }
public FacesRequest start() { if (connection.isStarted() || connection.isFinished()) { throw new IllegalStateException(); } connection.start(); FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); facesContext = facesContextFactory.getFacesContext(facesServer.getContext(), connection.getRequest(), connection.getResponse(), lifecycle); if (null != viewId) { facesContext.setViewRoot(application.getViewHandler().createView(facesContext, viewId)); } return this; }