| java.lang.Object org.directwebremoting.proxy.ScriptProxy org.directwebremoting.extend.EnginePrivate
Method Summary | |
public static ScriptBuffer | createForeignWindowProxy(String windowName, ScriptBuffer original) | public static String | getEngineInitScript() | public static String | getExecuteFunctionName() | public static String | getRemoteHandleBatchExceptionScript(String batchId, Exception ex) | public static String | getRemotePollCometDisabledScript(String batchId) | public static String | remoteBeginIFrameResponse(String batchId, boolean useWindowParent) A script to send at the beginning of an iframe response
Parameters: batchId - The id of the current batch Parameters: useWindowParent - Will the exec happen from a child iframe which isthe case for normal iframe based calls, or from the main window, which isthe case for iframe streamed polling. | public static String | remoteEndIFrameResponse(String batchId, boolean useWindowParent) A script to send at the end of an iframe response
Parameters: batchId - The id of the current batch Parameters: useWindowParent - Will the exec happen from a child iframe which isthe case for normal iframe based calls, or from the main window, which isthe case for iframe streamed polling. | public static String | remoteEval(String script) | public static void | remoteHandleCallback(ScriptConduit conduit, String batchId, String callId, Object data) | public static void | remoteHandleException(ScriptConduit conduit, String batchId, String callId, Throwable ex) | public static void | remoteHandleNewScriptSession(ScriptSession session, String newSessionId) | public static void | remoteHandleNewWindowName(ScriptSession session, String windowName) | public static String | xmlStringToJavascriptDom(String xml) |
createForeignWindowProxy | public static ScriptBuffer createForeignWindowProxy(String windowName, ScriptBuffer original)(Code) | | 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
Parameters: original - The script that we wish to be proxied Parameters: windowName - The window to which we wish the window to be proxied A script to send to a different window to cause proxying |
getEngineInitScript | public static String getEngineInitScript()(Code) | | Get a string which will initialize a dwr.engine object
A dwr.engine init script |
getExecuteFunctionName | public static String getExecuteFunctionName()(Code) | | DefaultRemoter needs to know the name of the execute function
The execute function name |
getRemoteHandleBatchExceptionScript | public static String getRemoteHandleBatchExceptionScript(String batchId, Exception ex)(Code) | | Call the dwr.engine.remote.handleServerException() in the browser
Parameters: batchId - The identifier of the batch that we are handling a response for Parameters: ex - The exception from which we make a reply The script to send to the browser |
getRemotePollCometDisabledScript | public static String getRemotePollCometDisabledScript(String batchId)(Code) | | Call the dwr.engine.remote.pollCometDisabled() in the browser
Parameters: batchId - The identifier of the batch that we are handling a response for The script to send to the browser |
remoteBeginIFrameResponse | public static String remoteBeginIFrameResponse(String batchId, boolean useWindowParent)(Code) | | A script to send at the beginning of an iframe response
Parameters: batchId - The id of the current batch Parameters: useWindowParent - Will the exec happen from a child iframe which isthe case for normal iframe based calls, or from the main window, which isthe case for iframe streamed polling. A script to init the environment |
remoteEndIFrameResponse | public static String remoteEndIFrameResponse(String batchId, boolean useWindowParent)(Code) | | A script to send at the end of an iframe response
Parameters: batchId - The id of the current batch Parameters: useWindowParent - Will the exec happen from a child iframe which isthe case for normal iframe based calls, or from the main window, which isthe case for iframe streamed polling. A script to tidy up the environment |
remoteEval | public static String remoteEval(String script)(Code) | | Prepare a script for execution in an iframe environment
Parameters: script - The script to modify The modified script |
remoteHandleCallback | public static void remoteHandleCallback(ScriptConduit conduit, String batchId, String callId, Object data) throws IOException, MarshallException(Code) | | Call the dwr.engine.remote.handleResponse() in the browser
Parameters: conduit - The browser pipe to write to Parameters: batchId - The identifier of the batch that we are handling a response for Parameters: callId - The identifier of the call that we are handling a response for Parameters: data - The data to pass to the callback function throws: IOException - If writing fails. throws: MarshallException - If objects in the script can not be marshalled |
remoteHandleException | public static void remoteHandleException(ScriptConduit conduit, String batchId, String callId, Throwable ex) throws IOException(Code) | | Call dwr.engine.remote.handleException() in the browser
Parameters: conduit - The browser pipe to write to Parameters: batchId - The identifier of the batch that we are handling a response for Parameters: callId - The id of the call we are replying to Parameters: ex - The exception to throw on the remote end throws: IOException - If writing fails. |
remoteHandleNewScriptSession | public static void remoteHandleNewScriptSession(ScriptSession session, String newSessionId)(Code) | | Call dwr.engine.remote.handleNewScriptSession() in the browser
Parameters: session - The browser page to write to Parameters: newSessionId - The new script session id for the browser to reuse |
remoteHandleNewWindowName | public static void remoteHandleNewWindowName(ScriptSession session, String windowName)(Code) | | Call dwr.engine.remote.handleNewWindowName() in the browser
Parameters: session - The browser page to write to Parameters: windowName - The new window name for the page |
xmlStringToJavascriptDom | public static String xmlStringToJavascriptDom(String xml)(Code) | | Take an XML string, and convert it into some Javascript that when
executed will return a DOM object that represents the same XML object
Parameters: xml - The XML string to convert The Javascript |
Methods inherited from org.directwebremoting.proxy.ScriptProxy | public void addFunctionCall(String funcName)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2, Object param3)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2, Object param3, Object param4)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)(Code)(Java Doc) public void addFunctionCall(String funcName, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7)(Code)(Java Doc) public void addScript(ScriptBuffer script)(Code)(Java Doc) public void addScriptSession(ScriptSession scriptSession)(Code)(Java Doc) public void addScriptSessions(Collection<ScriptSession> addScriptSessions)(Code)(Java Doc)
|
|
|