Class AbstractAjaxHandler

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

public abstract class AbstractAjaxHandler extends org.springframework.web.context.support.WebApplicationObjectSupport implements AjaxHandler
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    isAjaxRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Is the current request an Ajax request?
    protected abstract boolean
    isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    final void
    sendAjaxRedirect(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup)
    Send a redirect request to the Ajax client.
    protected abstract void
    sendAjaxRedirectInternal(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup)
     

    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

  • Method Details

    • isAjaxRequest

      public final boolean isAjaxRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Description copied from interface: AjaxHandler
      Is the current request an Ajax request?
      Specified by:
      isAjaxRequest in interface AjaxHandler
      Parameters:
      request - the current request
      response - the current response
    • sendAjaxRedirect

      public final void sendAjaxRedirect(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup) throws IOException
      Description copied from interface: AjaxHandler
      Send a redirect request to the Ajax client. This should cause the client-side agent to send a new request to the specified target url.
      Specified by:
      sendAjaxRedirect in interface AjaxHandler
      Parameters:
      targetUrl - the target url to redirect to
      request - the current request
      response - the current response
      popup - whether the redirect should be sent from a new popup dialog window
      Throws:
      IOException
    • isAjaxRequestInternal

      protected abstract boolean isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    • sendAjaxRedirectInternal

      protected abstract void sendAjaxRedirectInternal(String targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup) throws IOException
      Throws:
      IOException