org.webbitserver.handler
Interface DirectoryListingFormatter

All Known Implementing Classes:
DefaultDirectoryListingFormatter

public interface DirectoryListingFormatter


Method Summary
 byte[] formatFileListAsHtml(Iterable<FileEntry> files)
          Formats a list of files for display as a full well-formed HTML page.
 

Method Detail

formatFileListAsHtml

byte[] formatFileListAsHtml(Iterable<FileEntry> files)
                            throws IOException
Formats a list of files for display as a full well-formed HTML page. Must escape any unsafe file names or other data being returned.

Parameters:
files - A list of files about which information (e.g. file names) is to be presented.
Returns:
A ByteBuffer containing an entire HTML page to display, presenting information about files.
Throws:
IOException


Copyright © 2012. All Rights Reserved.