ikrs.httpd.resource
Interface DirectoryResource

All Superinterfaces:
Resource
All Known Implementing Classes:
AbstractDirectoryResource, DefaultDirectoryResource, PHPDirectoryResource

public interface DirectoryResource
extends Resource


Method Summary
 void generateDirectoryListing(java.util.UUID sid, java.io.OutputStream out)
          This method is designated to build the data for the directory listing.
 MIMEType getDirectoryListingType()
          This method returns the Content-Type this class generates.
 
Methods inherited from interface ikrs.httpd.Resource
close, getHypertextAccessFile, getInputStream, getLength, getMetaData, getOutputStream, getReadLock, getWriteLock, isOpen, isReadOnly, open
 

Method Detail

generateDirectoryListing

void generateDirectoryListing(java.util.UUID sid,
                              java.io.OutputStream out)
                              throws java.io.IOException
This method is designated to build the data for the directory listing. Subclasses must implement this method and write the generated data into the given output stream.

Parameters:
sid - The current session's ID.
out - The output stream to write the list data to.
Throws:
java.io.IOException - If any IO errors occur.

getDirectoryListingType

MIMEType getDirectoryListingType()
This method returns the Content-Type this class generates. The returned MIME type must not be null.

Returns:
The Content-Type this class generates.