org.webbitserver.handler
Class StaticFileHandler.FileWorker

java.lang.Object
  extended by org.webbitserver.handler.AbstractResourceHandler.IOWorker
      extended by org.webbitserver.handler.StaticFileHandler.FileWorker
All Implemented Interfaces:
Runnable
Enclosing class:
StaticFileHandler

protected class StaticFileHandler.FileWorker
extends AbstractResourceHandler.IOWorker


Field Summary
 
Fields inherited from class org.webbitserver.handler.AbstractResourceHandler.IOWorker
control, path
 
Constructor Summary
protected StaticFileHandler.FileWorker(HttpRequest request, HttpResponse response, HttpControl control, long maxAge)
           
 
Method Summary
protected  byte[] directoryListingBytes()
           
protected  boolean exists()
           
protected  byte[] fileBytes()
           
protected  boolean isDirectory()
           
protected  File resolveFile(String path)
           
protected  byte[] welcomeBytes()
           
 
Methods inherited from class org.webbitserver.handler.AbstractResourceHandler.IOWorker
error, extractQuery, notFound, read, run, withoutQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticFileHandler.FileWorker

protected StaticFileHandler.FileWorker(HttpRequest request,
                                       HttpResponse response,
                                       HttpControl control,
                                       long maxAge)
Method Detail

exists

protected boolean exists()
                  throws IOException
Specified by:
exists in class AbstractResourceHandler.IOWorker
Throws:
IOException

isDirectory

protected boolean isDirectory()
                       throws IOException
Specified by:
isDirectory in class AbstractResourceHandler.IOWorker
Throws:
IOException

fileBytes

protected byte[] fileBytes()
                    throws IOException
Specified by:
fileBytes in class AbstractResourceHandler.IOWorker
Throws:
IOException

welcomeBytes

protected byte[] welcomeBytes()
                       throws IOException
Specified by:
welcomeBytes in class AbstractResourceHandler.IOWorker
Throws:
IOException

directoryListingBytes

protected byte[] directoryListingBytes()
                                throws IOException
Specified by:
directoryListingBytes in class AbstractResourceHandler.IOWorker
Throws:
IOException

resolveFile

protected File resolveFile(String path)
                    throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.