public class RequestUtil extends Object
| Constructor and Description |
|---|
RequestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAjaxRequest(HttpServletRequest request)
Checks if the given
HttpServletRequest was sent using AJAX. |
public static boolean isAjaxRequest(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 © 2018 JBoss by Red Hat. All rights reserved.