request.setAttribute("response", getUrl(org, name, rev, type));
return mapping.findForward("module.javadoc");
}
private String getUrl(String org, String name, String rev, String type) {
ModuleInfo md = new ModuleInfoImpl(org, name, rev, Visibility.PUBLIC, true, false);
final URL docURL = Portal.getInstance().getServerServicesProvider().getContentService().getDocumentUrl(md, "", "", type);
//remove uak quite dirty
// final String url = docURL.toString();
// request.setAttribute("response", url.substring(0, url.length()-docURL.getQuery().length()-2));
String url = docURL.toString();