|
||||||||||
| 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 | |
|---|---|
static java.lang.String |
ATTRIBUTE_CALL_ID
How we stash away the results of the request parse |
static java.lang.String |
ATTRIBUTE_LONGPOLL_SESSION_ID
We remember people that are in a long poll so we can kick them out |
static java.lang.String |
ATTRIBUTE_PAGE
How we stash away the results of the request parse |
static java.lang.String |
ATTRIBUTE_PARAMETERS
How we stash away the results of the request parse |
static java.lang.String |
ATTRIBUTE_PARTIAL_RESPONSE
How we stash away the results of the request parse |
static java.lang.String |
ATTRIBUTE_SESSION_ID
How we stash away the results of the request parse |
| Constructor Summary | |
|---|---|
PollHandler(boolean plain)
|
|
| Method Summary | |
|---|---|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
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 |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_PARAMETERS
public static final java.lang.String ATTRIBUTE_CALL_ID
public static final java.lang.String ATTRIBUTE_SESSION_ID
public static final java.lang.String ATTRIBUTE_PAGE
public static final java.lang.String ATTRIBUTE_PARTIAL_RESPONSE
public static final java.lang.String ATTRIBUTE_LONGPOLL_SESSION_ID
| Constructor Detail |
|---|
public PollHandler(boolean plain)
plain - Are we using plain javascript or html wrapped javascript| Method Detail |
|---|
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
Handler
handle in interface Handlerrequest - The HTTP request dataresponse - Where we write the HTTP response data
java.io.IOException - If the write process failspublic 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 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
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||