|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.proxy.ScriptProxy
org.directwebremoting.extend.EnginePrivate
public class EnginePrivate
An abstraction of the DWREngine Javascript class for use by
BaseCallMarshaller,
PollHandler and a few others that need
to call internal functions in engine.js
| Constructor Summary | |
|---|---|
EnginePrivate()
|
|
| Method Summary | |
|---|---|
static ScriptBuffer |
createForeignWindowProxy(java.lang.String windowName,
ScriptBuffer original)
Evade the 2 connection limit by sending scripts to the wrong window and having that use window.name to push it to the right window |
static java.lang.String |
getEngineInitScript()
Get a string which will initialize a dwr.engine object |
static java.lang.String |
getExecuteFunctionName()
DefaultRemoter needs to know the name of the execute function |
static java.lang.String |
getRemoteHandleBatchExceptionScript(java.lang.String batchId,
java.lang.Exception ex)
Call the dwr.engine.remote.handleServerException() in the browser |
static java.lang.String |
getRemotePollCometDisabledScript(java.lang.String batchId)
Call the dwr.engine.remote.pollCometDisabled() in the browser |
static java.lang.String |
remoteBeginIFrameResponse(java.lang.String batchId,
boolean useWindowParent)
A script to send at the beginning of an iframe response |
static java.lang.String |
remoteEndIFrameResponse(java.lang.String batchId,
boolean useWindowParent)
A script to send at the end of an iframe response |
static java.lang.String |
remoteEval(java.lang.String script)
Prepare a script for execution in an iframe environment |
static void |
remoteHandleCallback(ScriptConduit conduit,
java.lang.String batchId,
java.lang.String callId,
java.lang.Object data)
Call the dwr.engine.remote.handleResponse() in the browser |
static void |
remoteHandleException(ScriptConduit conduit,
java.lang.String batchId,
java.lang.String callId,
java.lang.Throwable ex)
Call dwr.engine.remote.handleException() in the browser |
static void |
remoteHandleNewScriptSession(ScriptSession session,
java.lang.String newSessionId)
Call dwr.engine.remote.handleNewScriptSession() in the browser |
static void |
remoteHandleNewWindowName(ScriptSession session,
java.lang.String windowName)
Call dwr.engine.remote.handleNewWindowName() in the browser |
static java.lang.String |
xmlStringToJavascriptDom(java.lang.String xml)
Take an XML string, and convert it into some Javascript that when executed will return a DOM object that represents the same XML object |
| Methods inherited from class org.directwebremoting.proxy.ScriptProxy |
|---|
addFunctionCall, addFunctionCall, 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 |
| Constructor Detail |
|---|
public EnginePrivate()
| Method Detail |
|---|
public static void remoteHandleCallback(ScriptConduit conduit,
java.lang.String batchId,
java.lang.String callId,
java.lang.Object data)
throws java.io.IOException,
MarshallException
conduit - The browser pipe to write tobatchId - The identifier of the batch that we are handling a response forcallId - The identifier of the call that we are handling a response fordata - The data to pass to the callback function
java.io.IOException - If writing fails.
MarshallException - If objects in the script can not be marshalled
public static void remoteHandleException(ScriptConduit conduit,
java.lang.String batchId,
java.lang.String callId,
java.lang.Throwable ex)
throws java.io.IOException
conduit - The browser pipe to write tobatchId - The identifier of the batch that we are handling a response forcallId - The id of the call we are replying toex - The exception to throw on the remote end
java.io.IOException - If writing fails.
public static void remoteHandleNewScriptSession(ScriptSession session,
java.lang.String newSessionId)
session - The browser page to write tonewSessionId - The new script session id for the browser to reuse
public static void remoteHandleNewWindowName(ScriptSession session,
java.lang.String windowName)
session - The browser page to write towindowName - The new window name for the page
public static java.lang.String getRemoteHandleBatchExceptionScript(java.lang.String batchId,
java.lang.Exception ex)
batchId - The identifier of the batch that we are handling a response forex - The exception from which we make a reply
public static java.lang.String getRemotePollCometDisabledScript(java.lang.String batchId)
batchId - The identifier of the batch that we are handling a response for
public static java.lang.String xmlStringToJavascriptDom(java.lang.String xml)
xml - The XML string to convert
public static java.lang.String getEngineInitScript()
public static java.lang.String getExecuteFunctionName()
DefaultRemoter needs to know the name of the execute function
public static java.lang.String remoteBeginIFrameResponse(java.lang.String batchId,
boolean useWindowParent)
batchId - The id of the current batchuseWindowParent - Will the exec happen from a child iframe which is
the case for normal iframe based calls, or from the main window, which is
the case for iframe streamed polling.
public static java.lang.String remoteEndIFrameResponse(java.lang.String batchId,
boolean useWindowParent)
batchId - The id of the current batchuseWindowParent - Will the exec happen from a child iframe which is
the case for normal iframe based calls, or from the main window, which is
the case for iframe streamed polling.
public static java.lang.String remoteEval(java.lang.String script)
script - The script to modify
public static ScriptBuffer createForeignWindowProxy(java.lang.String windowName,
ScriptBuffer original)
original - The script that we wish to be proxiedwindowName - The window to which we wish the window to be proxied
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||