org.benow.web.path.file
Class StaticContentPathHandler

java.lang.Object
  extended by org.benow.web.path.PathHandler
      extended by org.benow.web.path.FileBasedPathHandler
          extended by org.benow.web.path.file.StaticContentPathHandler
Direct Known Subclasses:
CSSPathHandler

public class StaticContentPathHandler
extends FileBasedPathHandler


Field Summary
 
Fields inherited from class org.benow.web.path.FileBasedPathHandler
base
 
Fields inherited from class org.benow.web.path.PathHandler
CONTENT_LENGTH_UNKNOWN, LAST_MODIFIED_UNKNOWN, params, request, response
 
Constructor Summary
StaticContentPathHandler()
           
 
Method Summary
 boolean canHandle(java.lang.String path)
          Return true if the handler can handle the given path.
 java.lang.Object handle(java.io.OutputStream out)
           
 
Methods inherited from class org.benow.web.path.FileBasedPathHandler
deliverFile, deliverResource
 
Methods inherited from class org.benow.web.path.PathHandler
deliverHTML, deliverStream, deliverStream, deliverStream, handle, handle, handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticContentPathHandler

public StaticContentPathHandler()
Method Detail

canHandle

public boolean canHandle(java.lang.String path)
Description copied from class: PathHandler
Return true if the handler can handle the given path. Path is in format /dir/childdir/item.ext. It will never be null and will always start with a /.

Specified by:
canHandle in class PathHandler
Returns:

handle

public java.lang.Object handle(java.io.OutputStream out)
                        throws java.lang.Exception
Overrides:
handle in class PathHandler
Throws:
java.lang.Exception