org.directwebremoting.servlet
Class JavaScriptHandler

java.lang.Object
  extended by org.directwebremoting.servlet.CachingHandler
      extended by org.directwebremoting.servlet.TemplateHandler
          extended by org.directwebremoting.servlet.JavaScriptHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
FileJavaScriptHandler, GeneratedJavaScriptHandler

public abstract class JavaScriptHandler
extends TemplateHandler

Once we know a resource is JavaScript, we can go about compressing it.

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

Constructor Summary
JavaScriptHandler()
          Setup the JavaScriptHandler defaults
 
Method Summary
 void setCompressor(Compressor compressor)
          Setter for the current JavaScript compression library
 void setDebug(boolean debug)
          In debug mode we don't do compression at all
 
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

JavaScriptHandler

public JavaScriptHandler()
Setup the JavaScriptHandler defaults

Method Detail

setCompressor

public void setCompressor(Compressor compressor)
Setter for the current JavaScript compression library

Parameters:
compressor - The new compression library

setDebug

public void setDebug(boolean debug)
In debug mode we don't do compression at all


Copyright 2008