org.directwebremoting.servlet
Class EngineHandler

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
                  extended by org.directwebremoting.servlet.EngineHandler
All Implemented Interfaces:
Handler

public class EngineHandler
extends FileJavaScriptHandler

A Handler that supports requests for engine.js

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

Constructor Summary
EngineHandler()
          Setup the default values
 
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 setPlainCallHandlerUrl(java.lang.String plainCallHandlerUrl)
           
 void setPlainPollHandlerUrl(java.lang.String plainPollHandlerUrl)
           
 void setRemoter(Remoter remoter)
           
 void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
           
 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?
 
Methods inherited from class org.directwebremoting.servlet.JavaScriptHandler
setCompressor, setDebug
 
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

EngineHandler

public EngineHandler()
Setup the default values

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

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

setRemoter

public void setRemoter(Remoter remoter)
Parameters:
remoter - the remoter to set

setScriptSessionManager

public void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
Parameters:
scriptSessionManager - the scriptSessionManager to set

Copyright 2008