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  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
 

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

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.