示例#1
0
  public static RequestParameter fromRequestName(String requestName) {

    if (ClientUtils.isNotBlank(requestName)) {
      for (final RequestParameter e : values()) {
        if (e.getRequestName().equals(requestName)) {
          return e;
        }
      }
    }

    return null;
  }
示例#2
0
 public static String getRequestName(RequestParameter requestParameter) {
   return ClientUtils.toLowerCase(requestParameter.name());
 }