webcore.webserver
Interface WebRequestableFactoryInterface

All Known Implementing Classes:
SSLRedirectorWebRequestableFactory

public interface WebRequestableFactoryInterface

Interface for a factory class which creates web requestables. Each Webserver Instance uses a WebRequestableFactoryInterface to construct WebRequstables to handle requests.

The WebRequestableFactoryInterface examine the HTTPRequest passed to the factory method and return a WebRequestable which will be used by the WebServer to process the HTTPRequest.


Method Summary
 WebRequestable createWebRequestable(HTTPRequest request)
          Must return a WebRequestable which is suitable to process this HTTPRequest.
 

Method Detail

createWebRequestable

public WebRequestable createWebRequestable(HTTPRequest request)
Must return a WebRequestable which is suitable to process this HTTPRequest. The Webserver will call this method from a Threads in the Webserver's Thread pool.

Implementers of this method must provide a WebRequestable even for static files. HTTPFileRetriever is recommended for the default WebRequestable unless static files are not being served.