ERXStaticResourceRequestHandler Class Reference

Inherits com::webobjects::appserver::WORequestHandler.

Collaboration diagram for ERXStaticResourceRequestHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXStaticResourceRequestHandler (String frameworkName)
 ERXStaticResourceRequestHandler ()
WOResponse handleRequest (WORequest request)

Protected Member Functions

WOResponse _generateResponseForInputStream (InputStream is, int length, String type)

Private Member Functions

String documentRoot ()

Private Attributes

String _documentRoot
boolean _useRequestHandlerPath

Static Private Attributes

static WOApplication application = WOApplication.application()
static Logger log = Logger.getLogger(ERXStaticResourceRequestHandler.class)


Detailed Description

Simple static resource request handler. Allows for better debugging and you can set the document root via the system property WODocumentRoot.
Author:
ak

Constructor & Destructor Documentation

ERXStaticResourceRequestHandler ( String  frameworkName  ) 

Creates a static resource handler for the given framework, which gives you nicer relative URLs to work with. For instance, you could register a request handler "aj" that maps to the "Ajax" framework, which would make URLs of the form "/aj/wonder.js" map onto Ajax's WebServerResources/wonder.js folder.

Parameters:
frameworkName the name of the framework to map to (or null/"app" for the application)


Member Function Documentation

WOResponse _generateResponseForInputStream ( InputStream  is,
int  length,
String  type 
) [protected]

String documentRoot (  )  [private]

WOResponse handleRequest ( WORequest  request  ) 


Member Data Documentation

String _documentRoot [private]

boolean _useRequestHandlerPath [private]

WOApplication application = WOApplication.application() [static, private]

Logger log = Logger.getLogger(ERXStaticResourceRequestHandler.class) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8