code: public static boolean isHttpPostRequest(HttpServletRequest request) {
          boolean isSane = isSaneRequest(request);
          boolean isPost = isSane && request.getMethod().equals(HttpMethod.POST.toString());
          return isSane && isPost;
      }
docs: Check if provided {@link HttpServletRequest} is a HTTP POST request
  
  @param request {@link HttpServletRequest} to check
  @return true if HTTP POST, false otherwise