Class FlowExternalContext

java.lang.Object
jakarta.faces.context.ExternalContext
jakarta.faces.context.ExternalContextWrapper
org.springframework.faces.webflow.FlowExternalContext
All Implemented Interfaces:
jakarta.faces.FacesWrapper<jakarta.faces.context.ExternalContext>

public class FlowExternalContext extends jakarta.faces.context.ExternalContextWrapper
Custom ExternalContext implementation that supports custom response objects other than HttpServletResponse.
Since:
2.4
Author:
Jeremy Grelle, Phillip Webb, Rossen Stoyanchev
  • Field Summary

    Fields inherited from class jakarta.faces.context.ExternalContext

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowExternalContext(RequestContext context, jakarta.faces.context.ExternalContext wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    jakarta.faces.context.ExternalContext
     
    void
    responseSendError(int statusCode, String message)
     
    void
    setResponse(Object response)
     

    Methods inherited from class jakarta.faces.context.ExternalContextWrapper

    addResponseCookie, addResponseHeader, dispatch, encodeActionURL, encodeBookmarkableURL, encodeNamespace, encodePartialActionURL, encodeRedirectURL, encodeResourceURL, encodeWebsocketURL, getApplicationContextPath, getApplicationMap, getAuthType, getClientWindow, getContext, getContextName, getFlash, getInitParameter, getInitParameterMap, getMimeType, getRealPath, getRemoteUser, getRequest, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestContextPath, getRequestCookieMap, getRequestHeaderMap, getRequestHeaderValuesMap, getRequestLocale, getRequestLocales, getRequestMap, getRequestParameterMap, getRequestParameterNames, getRequestParameterValuesMap, getRequestPathInfo, getRequestScheme, getRequestServerName, getRequestServerPort, getRequestServletPath, getResource, getResourceAsStream, getResourcePaths, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSession, getSessionId, getSessionMap, getSessionMaxInactiveInterval, getUserPrincipal, invalidateSession, isResponseCommitted, isSecure, isUserInRole, log, log, redirect, release, responseFlushBuffer, responseReset, setClientWindow, setRequest, setRequestCharacterEncoding, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlowExternalContext

      public FlowExternalContext(RequestContext context, jakarta.faces.context.ExternalContext wrapped)
  • Method Details

    • getWrapped

      public jakarta.faces.context.ExternalContext getWrapped()
      Specified by:
      getWrapped in interface jakarta.faces.FacesWrapper<jakarta.faces.context.ExternalContext>
      Overrides:
      getWrapped in class jakarta.faces.context.ExternalContextWrapper
    • getResponse

      public Object getResponse()
      Overrides:
      getResponse in class jakarta.faces.context.ExternalContextWrapper
    • setResponse

      public void setResponse(Object response)
      Overrides:
      setResponse in class jakarta.faces.context.ExternalContextWrapper
    • responseSendError

      public void responseSendError(int statusCode, String message) throws IOException
      Overrides:
      responseSendError in class jakarta.faces.context.ExternalContextWrapper
      Throws:
      IOException