use of org.eclipse.smarthome.io.rest.RESTResource in project smarthome by eclipse.
the class RootResource method getRootBean.
private RootBean getRootBean() {
RootBean bean = new RootBean();
for (RESTResource resource : restResources) {
// we will include all RESTResources that are currently satisfied
if (resource.isSatisfied()) {
String path = resource.getClass().getAnnotation(Path.class).value();
bean.links.add(new RootBean.Links(path, uriInfo.getBaseUriBuilder().path(path).build().toASCIIString()));
}
}
return bean;
}
Aggregations