org.webbitserver.handler
Class EmbeddedResourceHandler.ResourceWorker

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

protected class EmbeddedResourceHandler.ResourceWorker
extends AbstractResourceHandler.IOWorker


Field Summary
 
Fields inherited from class org.webbitserver.handler.AbstractResourceHandler.IOWorker
control, path, response
 
Constructor Summary
protected EmbeddedResourceHandler.ResourceWorker(HttpRequest request, HttpResponse response, HttpControl control)
           
 
Method Summary
protected  byte[] directoryListingBytes()
           
protected  boolean exists()
           
protected  byte[] fileBytes()
           
protected  boolean isDirectory()
           
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

EmbeddedResourceHandler.ResourceWorker

protected EmbeddedResourceHandler.ResourceWorker(HttpRequest request,
                                                 HttpResponse response,
                                                 HttpControl control)
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


Copyright © 2012. All Rights Reserved.