use of com.webcohesion.enunciate.api.resources.Resource in project enunciate by stoicflame.
the class PathBasedResourceGroupImpl method getPaths.
@Override
public List<PathSummary> getPaths() {
Set<String> methods = new TreeSet<String>();
Set<String> styles = new TreeSet<String>();
for (Resource resource : this.resources) {
for (Method method : resource.getMethods()) {
methods.add(method.getHttpMethod());
styles.addAll(method.getStyles());
}
}
return Arrays.asList((PathSummary) new PathSummaryImpl(this.path, methods, styles));
}
Aggregations