org.directwebremoting.servlet
Class EngineHandler

java.lang.Object
  extended by org.directwebremoting.servlet.CachingFileHandler
      extended by org.directwebremoting.servlet.TemplateHandler
          extended by org.directwebremoting.servlet.JavaScriptHandler
              extended by org.directwebremoting.servlet.EngineHandler
All Implemented Interfaces:
Handler

public class EngineHandler
extends JavaScriptHandler

A Handler that supports requests for engine.js

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

Constructor Summary
EngineHandler()
          Setup the JavaScriptHandler defaults
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getSearchReplacePairs()
          Mostly when we send a file out, we don't change anything so the default set of search and replaces is empty.
 void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
           
 void setHtmlCallHandlerUrl(java.lang.String htmlCallHandlerUrl)
           
 void setHtmlPollHandlerUrl(java.lang.String htmlPollHandlerUrl)
           
 void setMaxWaitAfterWrite(int maxWaitAfterWrite)
          Sometimes with proxies, you need to close the stream all the time to make the flush work.
 void setOverridePath(java.lang.String overridePath)
          If we need to override the default path
 void setPlainCallHandlerUrl(java.lang.String plainCallHandlerUrl)
           
 void setPlainPollHandlerUrl(java.lang.String plainPollHandlerUrl)
           
 void setScriptTagProtection(java.lang.String scriptTagProtection)
          What is the string we use for script tag hack protection
 void setServerLoadMonitor(ServerLoadMonitor serverLoadMonitor)
          Are we supporting streaming?
 void setSessionCookieName(java.lang.String sessionCookieName)
          Alter the session cookie name from the default JSESSIONID.
 
Methods inherited from class org.directwebremoting.servlet.JavaScriptHandler
setCompressionLevel, setScriptCompressed
 
Methods inherited from class org.directwebremoting.servlet.CachingFileHandler
getMimeType, handle, setIgnoreLastModified, setMimeType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineHandler

public EngineHandler()
Setup the JavaScriptHandler defaults

Method Detail

getSearchReplacePairs

public java.util.Map<java.lang.String,java.lang.String> getSearchReplacePairs()
Description copied from class: TemplateHandler
Mostly when we send a file out, we don't change anything so the default set of search and replaces is empty. Engine.js can override this with strings to customize the output

Overrides:
getSearchReplacePairs in class TemplateHandler
Returns:
a map of search (key) and replace (value) strings

setServerLoadMonitor

public void setServerLoadMonitor(ServerLoadMonitor serverLoadMonitor)
Are we supporting streaming?

Parameters:
serverLoadMonitor - the serverLoadMonitor to set

setAllowGetForSafariButMakeForgeryEasier

public void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
Parameters:
allowGetForSafariButMakeForgeryEasier - Do we reduce security to help Safari

setScriptTagProtection

public void setScriptTagProtection(java.lang.String scriptTagProtection)
What is the string we use for script tag hack protection

Parameters:
scriptTagProtection - the scriptTagProtection to set

setOverridePath

public void setOverridePath(java.lang.String overridePath)
If we need to override the default path

Parameters:
overridePath - The new override path

setSessionCookieName

public void setSessionCookieName(java.lang.String sessionCookieName)
Alter the session cookie name from the default JSESSIONID.

Parameters:
sessionCookieName - the sessionCookieName to set

setMaxWaitAfterWrite

public void setMaxWaitAfterWrite(int maxWaitAfterWrite)
Sometimes with proxies, you need to close the stream all the time to make the flush work. A value of -1 indicated that we do not do early closing after writes.

Parameters:
maxWaitAfterWrite - the maxWaitAfterWrite to set

setPlainCallHandlerUrl

public void setPlainCallHandlerUrl(java.lang.String plainCallHandlerUrl)
Parameters:
plainCallHandlerUrl - the plainCallHandlerUrl to set

setPlainPollHandlerUrl

public void setPlainPollHandlerUrl(java.lang.String plainPollHandlerUrl)
Parameters:
plainPollHandlerUrl - the plainPollHandlerUrl to set

setHtmlCallHandlerUrl

public void setHtmlCallHandlerUrl(java.lang.String htmlCallHandlerUrl)
Parameters:
htmlCallHandlerUrl - the htmlCallHandlerUrl to set

setHtmlPollHandlerUrl

public void setHtmlPollHandlerUrl(java.lang.String htmlPollHandlerUrl)
Parameters:
htmlPollHandlerUrl - the htmlPollHandlerUrl to set

Copyright ¬ 2005