- public String getHtml(final String requestPath)
- throws MalformedURLException, IOException, ClassNotFoundException {
+ @Override
+ public String getDirectoryUrl(final AbstractFile directory,
+ final IndexingContext context) {
+
+ try {
+ return jspPath + context.getLocalUrl() + "/"
+ + URLEncoder.encode(directory.fileName, "UTF-8");
+ } catch (final UnsupportedEncodingException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public String getHtml(String requestPath) throws MalformedURLException,
+ IOException, ClassNotFoundException {
+
+ if (requestPath == null)
+ requestPath = "";
+
+ if (requestPath.equals("/"))
+ requestPath = "";