for (Method javaMethod : actualType.getDeclaredMethods()) {
if (!isEligible(javaMethod) || isGetter(javaMethod)) {
continue;
}
String uri = getUriFor(javaMethod, baseType);
RouteBuilder builder = new RouteBuilder(proxifier, finder, uri);
for (HttpMethod m : HttpMethod.values()) {
if (javaMethod.isAnnotationPresent(m.getAnnotation())) {
builder.with(m);
}
}
builder.is(baseType, javaMethod);
routes.add(builder.build());
}
registerRulesFor(actualType.getSuperclass(), baseType, routes);
}