code: public static long getLong(@NotNull ServletRequest request, @NotNull String param, long defaultValue) {
      String value = request.getParameter(param);
      return NumberUtils.toLong(value, defaultValue);
    }
docs: Returns a request parameter as long.
  @param request Request.
  @param param Parameter name.
  @param defaultValue Default value.
  @return Parameter value or default value if it does not exist or is not a number.