private String getSortKey(Point point) { StringBuilder buffer = new StringBuilder(); point.path().forEach(locator -> { buffer.append("/"); buffer.append(getUrlSegment(locator)); }); Method method = point.getMethod(); if (method.isAction()) { buffer.append("/"); buffer.append(getUrlSegment(method)); } return buffer.toString(); }
private void documentRequest(Point point) { Method method = point.getMethod(); Service service = method.getDeclaringService(); StringBuilder buffer = new StringBuilder(); buffer.append(String.format("* <<%s,%s>> ", getId(service, method), getHttpMethod(method))); point.path().forEach(locator -> { buffer.append("/"); String link = String.format("<<%s,%s>>", getId(locator.getService()), getUrlSegment(locator)); buffer.append(link); }); if (method.isAction()) { buffer.append("/"); String link = String.format("<<%s,%s>>", getId(service), getUrlSegment(method)); buffer.append(link); } docBuffer.addLine(buffer.toString()); }
if (method.isAction()) { actions.add(method);