Esempio n. 1
0
 private boolean acceptsHttpGet(Method method) {
   if (method.isAnnotationPresent(Get.class)) {
     return true;
   }
   for (HttpMethod httpMethod : HttpMethod.values()) {
     if (method.isAnnotationPresent(httpMethod.getAnnotation())) {
       return false;
     }
   }
   return true;
 }