goja-web/src/main/java/goja/mvc/kits/Requests.java
public static boolean ajax(HttpServletRequest request) {
        String x_requested = request.getHeader("x-requested-with");
        return !Strings.isNullOrEmpty(x_requested) && "XMLHttpRequest".equals(x_requested);
    }
public static boolean ajax(HttpServletRequest request) {
        String x_requested = request.getHeader("x-requested-with");
        return !Strings.isNullOrEmpty(x_requested) && "XMLHttpRequest".equals(x_requested);
    }
判断当前Request是否位Ajax请求，通过消息头来进行判断.

@param request 当前请求对象
@return 如果返回<code>true</code>则，表示当前的Request是由Ajax请求，否则反之