public interface AjaxHandler
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?
|
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.
|
boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- the current requestresponse
- the current responsevoid sendAjaxRedirect(java.lang.String targetUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean popup) throws java.io.IOException
request
- the current requestresponse
- the current responsetargetUrl
- the target url to redirect topopup
- whether the redirect should be sent from a new popup dialog windowjava.io.IOException