use of com.bluenimble.platform.api.ApiVerb in project serverless by bluenimble.
the class DefaultApiServicesManager method list.
@Override
public void list(Selector selector) {
if (selector == null || services.isEmpty()) {
return;
}
Iterator<ApiVerb> verbs = services.keySet().iterator();
while (verbs.hasNext()) {
ApiVerb verb = verbs.next();
ApiServiceSet set = services.get(verb);
Iterator<String> endpoints = set.endpoints();
if (endpoints == null) {
continue;
}
while (endpoints.hasNext()) {
boolean cancel = selector.select(set.get(endpoints.next()));
if (cancel) {
return;
}
}
}
}
Aggregations