|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.proxy.ScriptProxy
org.directwebremoting.proxy.dwr.Engine
public class Engine
Engine is a server-side proxy that allows Java programmers to call client side Javascript from Java.
for more documenation on server-side proxies
Field Summary | |
---|---|
static int |
IFrame
XHR remoting type constant. |
static int |
ScriptTag
XHR remoting type constant. |
static int |
XMLHttpRequest
XHR remoting type constant. |
Constructor Summary | |
---|---|
Engine()
Http thread constructor, that affects no browsers. |
|
Engine(java.util.Collection scriptSessions)
Http thread constructor that alters a number of browsers |
|
Engine(ScriptSession scriptSession)
Http thread constructor that alters a single browser |
Method Summary | |
---|---|
void |
setActiveReverseAjax(boolean activeReverseAjax)
Does DWR poll the server for updates? (Default: false) |
void |
setAsync(boolean async)
Do we ask the XHR object to be asynchronous? (Default: true) |
void |
setHttpMethod(java.lang.String httpMethod)
Which HTTP method do we use to send results? Must be one of "GET" or "POST". |
void |
setOrdered(boolean ordered)
Ensure that remote calls happen in the order in which they were sent? (Default: false) |
void |
setPollType(int newPollType)
Set the preferred polling type. |
void |
setPollUsingComet(boolean pollComet)
Does DWR us comet polling? (Default: true) |
void |
setRpcType(int newType)
Set the preferred remoting type. |
void |
setTimeout(int timeout)
Set a default timeout value for all calls. |
Methods inherited from class org.directwebremoting.proxy.ScriptProxy |
---|
addFunctionCall, addFunctionCall, addFunctionCall, addFunctionCall, addFunctionCall, addFunctionCall, addScript, addScriptSession, addScriptSessions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int XMLHttpRequest
public static final int IFrame
public static final int ScriptTag
Constructor Detail |
---|
public Engine()
ScriptProxy.addScriptSession(ScriptSession)
or to
ScriptProxy.addScriptSessions(Collection)
will be needed
public Engine(ScriptSession scriptSession)
scriptSession
- The browser to alterpublic Engine(java.util.Collection scriptSessions)
scriptSessions
- A collection of ScriptSessions that we should act on.Method Detail |
---|
public void setTimeout(int timeout)
timeout
- The time to wait in millisecondspublic void setRpcType(int newType)
newType
- One of dwr.engine.XMLHttpRequest or dwr.engine.IFrame or dwr.engine.ScriptTagpublic void setHttpMethod(java.lang.String httpMethod)
httpMethod
- One of XMLHttpRequest
, IFrame
or ScriptTag
public void setOrdered(boolean ordered)
ordered
- True to set call ordering.public void setAsync(boolean async)
async
- False to become synchronous (not recommended)public void setActiveReverseAjax(boolean activeReverseAjax)
activeReverseAjax
- True/False to turn RA on/offpublic void setPollUsingComet(boolean pollComet)
pollComet
- True/False to use Comet where supportedpublic void setPollType(int newPollType)
newPollType
- One of XMLHttpRequest
, IFrame
or ScriptTag
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |