private static FacesContext getWrappedFacesContextImpl(FacesContext facesContext) { if (facesContext == null || !(facesContext instanceof FacesContextWrapper)) { return facesContext; } FacesContextWrapper facesContextWrapper = (FacesContextWrapper) facesContext; FacesContext wrappedFacesContext = facesContextWrapper.getWrapped(); if (wrappedFacesContext == null || FacesContext.class.equals(wrappedFacesContext.getClass())) { return facesContext; } return getWrappedFacesContextImpl(wrappedFacesContext); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getApplication()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getApplication() */ @Override public Application getApplication() { return getWrapped().getApplication(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getMaximumSeverity()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getMaximumSeverity() */ @Override public FacesMessage.Severity getMaximumSeverity() { return getWrapped().getMaximumSeverity(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getMessages(String)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getMessages(String) */ @Override public Iterator<FacesMessage> getMessages(String clientId) { return getWrapped().getMessages(clientId); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setExceptionHandler(ExceptionHandler)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setExceptionHandler(ExceptionHandler) */ @Override public void setExceptionHandler(ExceptionHandler exceptionHandler) { getWrapped().setExceptionHandler(exceptionHandler); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#isValidationFailed} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#isValidationFailed */ @Override public boolean isValidationFailed() { return getWrapped().isValidationFailed(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#isProjectStage(javax.faces.application.ProjectStage)} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#isProjectStage(javax.faces.application.ProjectStage) */ @Override public boolean isProjectStage(ProjectStage stage) { return getWrapped().isProjectStage(stage); } }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getRenderResponse()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getRenderResponse() */ @Override public boolean getRenderResponse() { return getWrapped().getRenderResponse(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setResponseWriter(ResponseWriter)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setResponseWriter(ResponseWriter) */ @Override public void setResponseWriter(ResponseWriter responseWriter) { getWrapped().setResponseWriter(responseWriter); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#addMessage(String, FacesMessage)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#addMessage(String, FacesMessage) */ @Override public void addMessage(String clientId, FacesMessage message) { getWrapped().addMessage(clientId, message); }
/** * <p class="changed_added_2_1">The default behavior of this method * is to call {@link FacesContext#isReleased} on the wrapped {@link * FacesContext} object.</p> * * @see javax.faces.context.FacesContext#isReleased * @since 2.1 */ @Override public boolean isReleased() { return getWrapped().isReleased(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#release()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#release() */ @Override public void release() { getWrapped().release(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getMessageList(String)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getMessageList(String) */ @Override public List<FacesMessage> getMessageList(String clientId) { return getWrapped().getMessageList(clientId); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#isPostback()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#isPostback() */ @Override public boolean isPostback() { return getWrapped().isPostback(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getCurrentPhaseId()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getCurrentPhaseId() */ @Override public PhaseId getCurrentPhaseId() { return getWrapped().getCurrentPhaseId(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setProcessingEvents(boolean)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setProcessingEvents(boolean) */ @Override public void setProcessingEvents(boolean processingEvents) { getWrapped().setProcessingEvents(processingEvents); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#isProcessingEvents()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#isProcessingEvents() */ @Override public boolean isProcessingEvents() { return getWrapped().isProcessingEvents(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getResponseComplete()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getResponseComplete() */ @Override public boolean getResponseComplete() { return getWrapped().getResponseComplete(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setResponseStream(ResponseStream)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setResponseStream(ResponseStream) */ @Override public void setResponseStream(ResponseStream responseStream) { getWrapped().setResponseStream(responseStream); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#isProcessingEvents()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#isProcessingEvents() */ @Override public boolean isProcessingEvents() { return getWrapped().isProcessingEvents(); }