org.directwebremoting.servlet
Class FileJavaScriptHandler

java.lang.Object
  extended by org.directwebremoting.servlet.CachingHandler
      extended by org.directwebremoting.servlet.TemplateHandler
          extended by org.directwebremoting.servlet.JavaScriptHandler
              extended by org.directwebremoting.servlet.FileJavaScriptHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
AuthHandler, DwrStoreHandler, EngineHandler, GiHandler, UtilHandler, WebworkUtilHandler

public class FileJavaScriptHandler
extends JavaScriptHandler

Many JavaScriptHandlers just read their contents from a file. This class simplifies that.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
FileJavaScriptHandler(java.lang.String resource)
           
 
Method Summary
 
Methods inherited from class org.directwebremoting.servlet.JavaScriptHandler
setCompressor, setDebug
 
Methods inherited from class org.directwebremoting.servlet.TemplateHandler
getSearchReplacePairs
 
Methods inherited from class org.directwebremoting.servlet.CachingHandler
getMimeType, handle, setIgnoreLastModified, setMimeType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileJavaScriptHandler

public FileJavaScriptHandler(java.lang.String resource)
Parameters:
resource - The name of the resource in the classpath that we read our contents from

Copyright 2008