public class RequestUtil extends Object
Constructor and Description |
---|
RequestUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAjaxRequest(javax.servlet.http.HttpServletRequest request)
Checks if the given
HttpServletRequest was sent using AJAX. |
public static boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
Checks if the given HttpServletRequest
was sent using AJAX. Most AJAX libraries
send the X-Requested-With
header with value XMLHttpRequest
to indicate that AJAX is being used.
request
- the request.Copyright © 2019. All rights reserved.