public static boolean isHttpGetRequest(HttpServletRequest request) {
        boolean isSane = isSaneRequest(request);
        boolean isGet = isSane && request.getMethod().equals(HttpMethod.GET.toString());
        return isSane && isGet;
    }
public static boolean isHttpGetRequest ( HttpServletRequest request ) { boolean isSane = isSaneRequest ( request ) ; boolean isGet = isSane && request . getMethod ( ) . equals ( HttpMethod . GET . toString ( ) ) ; return isSane && isGet ; }
Check if provided {@link HttpServletRequest} is a HTTP GET request

@param request {@link HttpServletRequest} to check
@return true if HTTP v, false otherwise