er.extensions.appserver
Class ERXStaticResourceRequestHandler
java.lang.Object
com.webobjects.appserver.WORequestHandler
er.extensions.appserver.ERXStaticResourceRequestHandler
public class ERXStaticResourceRequestHandler
- extends WORequestHandler
Simple static resource request handler. Allows for better debugging
and you can set the document root via the system property WODocumentRoot.
- Author:
- ak
ERXStaticResourceRequestHandler
public ERXStaticResourceRequestHandler()
ERXStaticResourceRequestHandler
public 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)
_generateResponseForInputStream
protected WOResponse _generateResponseForInputStream(InputStream is,
int length,
String type)
handleRequest
public WOResponse handleRequest(WORequest request)
- Specified by:
handleRequest in class WORequestHandler
Copyright © 2002 – 2007 Project Wonder.