Java Doc for EnginePrivate.java in  » Ajax » dwr » org » directwebremoting » extend » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » dwr » org.directwebremoting.extend 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.proxy.ScriptProxy
      org.directwebremoting.extend.EnginePrivate

EnginePrivate
public class EnginePrivate extends ScriptProxy (Code)
An abstraction of the DWREngine Javascript class for use by org.directwebremoting.dwrp.BaseCallMarshaller , org.directwebremoting.dwrp.PollHandler and a few others that need to call internal functions in engine.js
author:
   Joe Walker [joe at getahead dot ltd dot uk]




Method Summary
public static  ScriptBuffercreateForeignWindowProxy(String windowName, ScriptBuffer original)
    
public static  StringgetEngineInitScript()
    
public static  StringgetExecuteFunctionName()
    
public static  StringgetRemoteHandleBatchExceptionScript(String batchId, Exception ex)
    
public static  StringgetRemotePollCometDisabledScript(String batchId)
    
public static  StringremoteBeginIFrameResponse(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  StringremoteEndIFrameResponse(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  StringremoteEval(String script)
    
public static  voidremoteHandleCallback(ScriptConduit conduit, String batchId, String callId, Object data)
    
public static  voidremoteHandleException(ScriptConduit conduit, String batchId, String callId, Throwable ex)
    
public static  voidremoteHandleNewScriptSession(ScriptSession session, String newSessionId)
    
public static  voidremoteHandleNewWindowName(ScriptSession session, String windowName)
    
public static  StringxmlStringToJavascriptDom(String xml)
    



Method Detail
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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.