Project Wonder 5.0.0.8794

er.extensions.appserver
Class ERXStaticResourceRequestHandler

java.lang.Object
  extended by com.webobjects.appserver.WORequestHandler
      extended by 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

Field Summary
 
Fields inherited from class com.webobjects.appserver.WORequestHandler
DidHandleRequestNotification
 
Constructor Summary
ERXStaticResourceRequestHandler()
           
ERXStaticResourceRequestHandler(String frameworkName)
          Creates a static resource handler for the given framework, which gives you nicer relative URLs to work with.
 
Method Summary
protected  WOResponse _generateResponseForInputStream(InputStream is, int length, String type)
           
 WOResponse handleRequest(WORequest request)
           
 
Methods inherited from class com.webobjects.appserver.WORequestHandler
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

_generateResponseForInputStream

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

handleRequest

public WOResponse handleRequest(WORequest request)
Specified by:
handleRequest in class WORequestHandler

Last updated: Thu, Jan 8, 2009 • 12:32 PM EST

Copyright © 2002 – 2007 Project Wonder.