public class SpringJavascriptAjaxHandler extends AbstractAjaxHandler
AbstractAjaxHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AJAX_ACCEPT_CONTENT_TYPE
The accept header value that signifies an Ajax request.
|
static java.lang.String |
AJAX_SOURCE_PARAM
Alternate request parameter to indicate an Ajax request for cases when control of the header is not available.
|
static java.lang.String |
POPUP_VIEW_HEADER
The response header to be set on an redirect that should be issued from a popup window.
|
static java.lang.String |
REDIRECT_URL_HEADER
The response header to be set on an Ajax redirect
|
Constructor and Description |
---|
SpringJavascriptAjaxHandler()
Create a SpringJavascriptAjaxHandler that is not part of a chain of AjaxHandler's.
|
SpringJavascriptAjaxHandler(AbstractAjaxHandler delegate)
Create a SpringJavascriptAjaxHandler as part of a chain of AjaxHandler's.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAjaxRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
sendAjaxRedirectInternal(java.lang.String targetUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean popup) |
isAjaxRequest, sendAjaxRedirect
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final java.lang.String REDIRECT_URL_HEADER
public static final java.lang.String POPUP_VIEW_HEADER
public static final java.lang.String AJAX_ACCEPT_CONTENT_TYPE
public static final java.lang.String AJAX_SOURCE_PARAM
public SpringJavascriptAjaxHandler()
public SpringJavascriptAjaxHandler(AbstractAjaxHandler delegate)
protected boolean isAjaxRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
isAjaxRequestInternal
in class AbstractAjaxHandler
protected void sendAjaxRedirectInternal(java.lang.String targetUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean popup) throws java.io.IOException
sendAjaxRedirectInternal
in class AbstractAjaxHandler
java.io.IOException