Class JsfAjaxHandler

java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.webflow.context.servlet.AbstractAjaxHandler
org.springframework.faces.webflow.JsfAjaxHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.webflow.context.servlet.AjaxHandler

public class JsfAjaxHandler extends org.springframework.webflow.context.servlet.AbstractAjaxHandler
Ajax handler for JSF 2 requests that can identify JSF 2 Ajax requests and send redirect instructions back to the client by including a redirect instruction in the content of the response.
Since:
2.2.0
Author:
Rossen Stoyanchev
See Also:
  • AbstractAjaxHandler
  • Field Summary

    Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JsfAjaxHandler(org.springframework.webflow.context.servlet.AbstractAjaxHandler delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    protected void
    sendAjaxRedirectInternal(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup)
     

    Methods inherited from class org.springframework.webflow.context.servlet.AbstractAjaxHandler

    isAjaxRequest, sendAjaxRedirect

    Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

    getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext

    Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

    getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext

    Methods inherited from class java.lang.Object

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

    • JsfAjaxHandler

      public JsfAjaxHandler()
    • JsfAjaxHandler

      public JsfAjaxHandler(org.springframework.webflow.context.servlet.AbstractAjaxHandler delegate)
  • Method Details

    • isAjaxRequestInternal

      protected boolean isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Specified by:
      isAjaxRequestInternal in class org.springframework.webflow.context.servlet.AbstractAjaxHandler
    • sendAjaxRedirectInternal

      protected void sendAjaxRedirectInternal(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup) throws IOException
      Specified by:
      sendAjaxRedirectInternal in class org.springframework.webflow.context.servlet.AbstractAjaxHandler
      Throws:
      IOException