possibility to include header HTML
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / WebIndexer.java
index 6530e70..acc1a28 100644 (file)
@@ -33,7 +33,7 @@ public class WebIndexer extends AbstractIndexer {
        }
 
        public String getHtml(String requestPath) throws MalformedURLException,
-                       IOException, ClassNotFoundException {
+       IOException, ClassNotFoundException {
 
                if (requestPath == null)
                        requestPath = "";
@@ -46,11 +46,11 @@ public class WebIndexer extends AbstractIndexer {
                                requestPath);
                layout.init("Photos", context.getLocalPathComponents(), this, context);
 
-               final DirectoryMetadata metadata = getMetadataForPath(requestPath);
+               final DirectoryMetadata directory = getMetadataForPath(requestPath);
 
-               compileHtml(layout, metadata);
+               compileHtml(layout, directory);
 
-               return layout.getHtml(false, false);
+               return layout.getHtml(false, false, directory);
        }
 
        public DirectoryMetadata getMetadataForPath(final String requestPath)
@@ -110,14 +110,14 @@ public class WebIndexer extends AbstractIndexer {
                // file path
                if (picture.getDimensions().equals(desiredDimension))
                        return context.getGlobalUrl() + context.getLocalUrl() + "/"
-                                       + picture.fileName;
+                       + picture.fileName;
 
                final String thumbnailFileName = picture
                                .getRelativeThumbnailFileName(desiredDimension);
 
                return context.getGlobalUrl() + context.getLocalUrl() + "/"
-                               + Constants.THUMBNAILS_DIRECTORY_NAME + "/"
-                               + UrlParamEncoder.encode(thumbnailFileName);
+               + Constants.THUMBNAILS_DIRECTORY_NAME + "/"
+               + UrlParamEncoder.encode(thumbnailFileName);
        }
 
 }