use of org.glassfish.admin.rest.utils.DomConfigurator in project Payara by payara.
the class BaseProvider method getResourceLinks.
protected Map<String, String> getResourceLinks(List<Dom> proxyList) {
Map<String, String> links = new TreeMap<String, String>();
Collections.sort(proxyList, new DomConfigurator());
for (Dom proxy : proxyList) {
// for each element
try {
links.put(proxy.getKey(), getElementLink(uriInfo.get(), proxy.getKey()));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return links;
}
use of org.glassfish.admin.rest.utils.DomConfigurator in project Payara by payara.
the class GetResultListHtmlProvider method getResourcesLinks.
private String getResourcesLinks(List<Dom> proxyList) {
StringBuilder result = new StringBuilder("<div>");
Collections.sort(proxyList, new DomConfigurator());
for (Map.Entry<String, String> link : getResourceLinks(proxyList).entrySet()) {
result.append("<a href=\"").append(link.getValue()).append("\">").append(link.getKey()).append("</a><br>");
}
result.append("</div><br/>");
return result.toString();
}
Aggregations