- * Returns the list of visual entries.
- *
- * @return The visual entries
- */
- public List<Entry> getVirtualEntries() {
- return virtualEntries;
- }
-
- /**
- * Adds a virtual entry that redirects to the given target.
- *
- * @param name
- * The name of the entry
- * @param contentType
- * The content type of the entry, or <code>null</code> for
- * auto-detection
- * @param target
- * The target URI of the redirect
- */
- public void addVirtualEntry(String name, String contentType, String target) {
- RedirectEntry redirectEntry = new RedirectEntry();
- redirectEntry.setName(name);
- redirectEntry.setContentType(contentType);
- redirectEntry.setTarget(target);
- redirectEntry.setInsert(true);
- }
-
- //
- // PRIVATE METHODS
- //
-
- /**
- * Scans the given path relative to {@link #basePath} for files and adds
- * them to the given list of entries.
- *
- * @param currentPath
- * The current path, relative to the base path
- * @param entries
- * The list of entries