| |
|
| java.lang.Object org.directwebremoting.dwrp.PollHandler
All known Subclasses: org.directwebremoting.servlet.PlainPollHandler, org.directwebremoting.servlet.HtmlPollHandler,
PollHandler | public class PollHandler implements Handler(Code) | | A Marshaller that output plain Javascript.
This marshaller can be tweaked to output Javascript in an HTML context.
This class works in concert with CallScriptConduit, they should be
considered closely related and it is important to understand what one does
while editing the other.
author: Joe Walker [joe at getahead dot ltd dot uk] |
activeReverseAjaxEnabled | protected boolean activeReverseAjaxEnabled(Code) | | Are we doing full reverse ajax
|
allowGetForSafariButMakeForgeryEasier | protected boolean allowGetForSafariButMakeForgeryEasier(Code) | | By default we disable GET, but this hinders old Safaris
|
jsonOutput | protected boolean jsonOutput(Code) | | Are we outputting in JSON mode?
|
log | final protected static Log log(Code) | | The log stream
|
maxWaitAfterWrite | protected int maxWaitAfterWrite(Code) | | 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.
See also: org.directwebremoting.servlet.FileHandler.maxWaitAfterWrite
|
pageNormalizer | protected PageNormalizer pageNormalizer(Code) | | How we turn pages into the canonical form.
|
plain | protected boolean plain(Code) | | Are we using plain javascript or html wrapped javascript
|
serverLoadMonitor | protected ServerLoadMonitor serverLoadMonitor(Code) | | We need to tell the system that we are waiting so it can load adjust
|
PollHandler | public PollHandler(boolean plain)(Code) | | Parameters: plain - Are we using plain javascript or html wrapped javascript |
isJsonOutput | public boolean isJsonOutput()(Code) | | Are we outputting in JSON mode? |
sendErrorScript | protected void sendErrorScript(HttpServletResponse response, String script) throws IOException(Code) | | Send a script to the browser and wrap it in the required prefixes etc.
Parameters: response - The http response to write to Parameters: script - The script to write throws: IOException - if writing fails. |
setActiveReverseAjaxEnabled | public void setActiveReverseAjaxEnabled(boolean activeReverseAjaxEnabled)(Code) | | Are we doing full reverse ajax
Parameters: activeReverseAjaxEnabled - Are we doing full reverse ajax |
setAllowGetForSafariButMakeForgeryEasier | public void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)(Code) | | Parameters: allowGetForSafariButMakeForgeryEasier - Do we reduce security to help Safari |
setContainerAbstraction | public void setContainerAbstraction(ContainerAbstraction containerAbstraction)(Code) | | Parameters: containerAbstraction - the containerAbstraction to set |
setConverterManager | public void setConverterManager(ConverterManager converterManager)(Code) | | Accessor for the DefaultCreatorManager that we configure
Parameters: converterManager - The new DefaultConverterManager |
setJsonOutput | public void setJsonOutput(boolean jsonOutput)(Code) | | Parameters: jsonOutput - Are we outputting in JSON mode? |
setMaxWaitAfterWrite | public void setMaxWaitAfterWrite(int maxWaitAfterWrite)(Code) | | 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 |
setPageNormalizer | public void setPageNormalizer(PageNormalizer pageNormalizer)(Code) | | Accessor for the PageNormalizer.
Parameters: pageNormalizer - The new PageNormalizer |
setScriptSessionManager | public void setScriptSessionManager(ScriptSessionManager scriptSessionManager)(Code) | | Parameters: scriptSessionManager - the scriptSessionManager to set |
setServerLoadMonitor | public void setServerLoadMonitor(ServerLoadMonitor serverLoadMonitor)(Code) | | Accessor for the server load monitor
Parameters: serverLoadMonitor - the new server load monitor |
|
|
|