Exemplo n.º 1
0
 @Override
 public void parseValidateAddRoute(
     String httpMethod, String route, String acceptType, Object target) {
   HttpMethod method;
   try {
     method = HttpMethod.valueOf(httpMethod);
   } catch (IllegalArgumentException e) {
     Timber.e(
         "The @Route value: " + route + " has an invalid HTTP method part: " + httpMethod + ".");
     return;
   }
   addRoute(method, route, acceptType, target);
 }
Exemplo n.º 2
0
 public String toString() {
   return httpMethod.name() + ", " + path + ", " + target;
 }