public abstract class AbstractAjaxHandler extends org.springframework.web.context.support.WebApplicationObjectSupport implements AjaxHandler
Constructor and Description |
---|
AbstractAjaxHandler(AbstractAjaxHandler delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAjaxRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Is the current request an Ajax request?
|
protected abstract boolean |
isAjaxRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendAjaxRedirect(java.lang.String targetUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean popup)
Send a redirect request to the Ajax client.
|
protected abstract void |
sendAjaxRedirectInternal(java.lang.String targetUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean popup) |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public AbstractAjaxHandler(AbstractAjaxHandler delegate)
public final boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AjaxHandler
isAjaxRequest
in interface AjaxHandler
request
- the current requestresponse
- the current responsepublic final void sendAjaxRedirect(java.lang.String targetUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean popup) throws java.io.IOException
AjaxHandler
sendAjaxRedirect
in interface AjaxHandler
targetUrl
- the target url to redirect torequest
- the current requestresponse
- the current responsepopup
- wheter the redirect should be sent from a new popup dialog windowjava.io.IOException
protected abstract boolean isAjaxRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected abstract void sendAjaxRedirectInternal(java.lang.String targetUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean popup) throws java.io.IOException
java.io.IOException