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
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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
-
Constructor Details
-
AbstractAjaxHandler
-
-
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 interfaceAjaxHandler
- Parameters:
request
- the current requestresponse
- 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 interfaceAjaxHandler
- Parameters:
targetUrl
- the target url to redirect torequest
- the current requestresponse
- the current responsepopup
- 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
-