public List<MethodParameter> getFormParameters() { if (resource.isSubResource()) { List<MethodParameter> allFormParameters = new ArrayList<MethodParameter>(resource.getParentMethod().getFormParameters()); allFormParameters.addAll(formParameters); return allFormParameters; } return formParameters; }
public AnnotationDesc getConsumesAnnotation() { if (consumesAnnotation != null) return consumesAnnotation; if (resource.isSubResource()) return resource.getConsumesAnnotation(); return null; }
public AnnotationDesc getProducesAnnotation() { if (producesAnnotation != null) return producesAnnotation; if (resource.isSubResource()) return resource.getProducesAnnotation(); return null; }