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, response
 
Method Summary
protected  boolean exists()
           
protected  ByteBuffer fileBytes()
           
protected  ByteBuffer welcomeBytes()
           
 
Methods inherited from class org.webbitserver.handler.AbstractResourceHandler.IOWorker
error, notFound, read, run, withoutTrailingSlashOrQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

exists

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

fileBytes

protected ByteBuffer fileBytes()
                        throws IOException
Specified by:
fileBytes in class AbstractResourceHandler.IOWorker
Throws:
IOException

welcomeBytes

protected ByteBuffer welcomeBytes()
                           throws IOException
Specified by:
welcomeBytes in class AbstractResourceHandler.IOWorker
Throws:
IOException


Copyright © 2012. All Rights Reserved.