use of org.osgi.service.http.runtime.dto.FailedListenerDTO in project felix by apache.
the class HttpServicePlugin method printFailedListenerDetails.
private void printFailedListenerDetails(final PrintWriter pw, final RuntimeDTO dto) {
if (dto.failedListenerDTOs.length == 0) {
return;
}
pw.print("<p class=\"statline ui-state-highlight\">${Failed Listeners}</p>");
pw.println("<table class=\"nicetable\">");
pw.println("<thead><tr>");
pw.println("<th class=\"header\">${Type}</th>");
pw.println("<th class=\"header\">${Info}</th>");
pw.println("</tr></thead>");
boolean odd = true;
for (final FailedListenerDTO ep : dto.failedListenerDTOs) {
final StringBuilder sb = new StringBuilder();
sb.append("${reason} : ").append(getErrorText(ep.failureReason)).append("\n");
final ServiceReference<?> ref = this.getServiceReference(ep.serviceId);
sb.append("${service.id} : ").append(String.valueOf(ep.serviceId)).append("\n");
appendServiceRanking(sb, ref);
if (ref != null) {
sb.append("${bundle} : ");
sb.append("${#link:");
sb.append(ref.getBundle().getBundleId());
sb.append("}");
sb.append(ref.getBundle().getSymbolicName());
sb.append("${link#}\n");
}
final StringBuilder tsb = new StringBuilder();
for (final String t : ep.types) {
tsb.append(t).append('\n');
}
odd = printRow(pw, odd, tsb.toString(), sb.toString());
}
pw.println("</table>");
}
Aggregations