|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.dwrp.PollHandler
public class PollHandler
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.
Field Summary | |
---|---|
protected boolean |
activeReverseAjaxEnabled
Are we doing full reverse ajax |
protected boolean |
allowGetForSafariButMakeForgeryEasier
By default we disable GET, but this hinders old Safaris |
protected ConverterManager |
converterManager
How we convert parameters |
protected boolean |
crossDomainSessionSecurity
Do we perform cross-domain session security checks? |
protected static org.apache.commons.logging.Log |
log
The log stream |
protected int |
maxWaitAfterWrite
Sometimes with proxies, you need to close the stream all the time to make the flush work. |
protected PageNormalizer |
pageNormalizer
How we turn pages into the canonical form. |
protected boolean |
plain
Are we using plain javascript or html wrapped javascript |
protected ScriptSessionManager |
scriptSessionManager
The owner of script sessions |
protected ServerLoadMonitor |
serverLoadMonitor
We need to tell the system that we are waiting so it can load adjust |
protected java.lang.String |
sessionCookieName
The session cookie name |
Constructor Summary | |
---|---|
PollHandler(boolean plain)
|
Method Summary | |
---|---|
void |
handle(HttpServletRequest request,
HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
protected void |
sendErrorScript(HttpServletResponse response,
java.lang.String script)
Send a script to the browser and wrap it in the required prefixes etc. |
void |
setActiveReverseAjaxEnabled(boolean activeReverseAjaxEnabled)
Are we doing full reverse ajax |
void |
setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
|
void |
setConverterManager(ConverterManager converterManager)
Accessor for the DefaultCreatorManager that we configure |
void |
setCrossDomainSessionSecurity(boolean crossDomainSessionSecurity)
Do we perform cross-domain session security checks? |
void |
setMaxWaitAfterWrite(int maxWaitAfterWrite)
Sometimes with proxies, you need to close the stream all the time to make the flush work. |
void |
setPageNormalizer(PageNormalizer pageNormalizer)
Accessor for the PageNormalizer. |
void |
setPollAndCometEnabled(boolean pollAndCometEnabled)
Deprecated. Use setActiveReverseAjaxEnabled(boolean) |
void |
setScriptSessionManager(ScriptSessionManager scriptSessionManager)
|
void |
setServerLoadMonitor(ServerLoadMonitor serverLoadMonitor)
Accessor for the server load monitor |
void |
setSessionCookieName(java.lang.String sessionCookieName)
Alter the session cookie name from the default JSESSIONID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String sessionCookieName
protected boolean activeReverseAjaxEnabled
protected boolean allowGetForSafariButMakeForgeryEasier
protected int maxWaitAfterWrite
protected boolean plain
protected boolean crossDomainSessionSecurity
protected PageNormalizer pageNormalizer
protected ServerLoadMonitor serverLoadMonitor
protected ConverterManager converterManager
protected ScriptSessionManager scriptSessionManager
protected static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public PollHandler(boolean plain)
plain
- Are we using plain javascript or html wrapped javascriptMethod Detail |
---|
public void handle(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Handler
handle
in interface Handler
request
- The HTTP request dataresponse
- Where we write the HTTP response data
java.io.IOException
- If the write process failsprotected void sendErrorScript(HttpServletResponse response, java.lang.String script) throws java.io.IOException
response
- The http response to write toscript
- The script to write
java.io.IOException
- if writing fails.public void setCrossDomainSessionSecurity(boolean crossDomainSessionSecurity)
crossDomainSessionSecurity
- the cross domain session security settingpublic void setConverterManager(ConverterManager converterManager)
converterManager
- The new DefaultConverterManagerpublic void setServerLoadMonitor(ServerLoadMonitor serverLoadMonitor)
serverLoadMonitor
- the new server load monitorpublic void setPageNormalizer(PageNormalizer pageNormalizer)
pageNormalizer
- The new PageNormalizerpublic void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
scriptSessionManager
- the scriptSessionManager to setpublic void setSessionCookieName(java.lang.String sessionCookieName)
sessionCookieName
- the sessionCookieName to setpublic void setPollAndCometEnabled(boolean pollAndCometEnabled)
setActiveReverseAjaxEnabled(boolean)
setActiveReverseAjaxEnabled(boolean)
pollAndCometEnabled
- Are we doing full reverse ajaxpublic void setActiveReverseAjaxEnabled(boolean activeReverseAjaxEnabled)
activeReverseAjaxEnabled
- Are we doing full reverse ajaxpublic void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
allowGetForSafariButMakeForgeryEasier
- Do we reduce security to help Safaripublic void setMaxWaitAfterWrite(int maxWaitAfterWrite)
maxWaitAfterWrite
- the maxWaitAfterWrite to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |