@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); }
public String toString() { return httpMethod.name() + ", " + path + ", " + target; }