Java Doc for DefaultRemoter.java in  » Ajax » dwr » org » directwebremoting » impl » 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.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.impl.DefaultRemoter

All known Subclasses:   org.directwebremoting.contrib.ParallelDefaultRemoter,  org.directwebremoting.jaxer.impl.JaxerRemoter,
DefaultRemoter
public class DefaultRemoter implements Remoter(Code)
In implementation of Remoter that delegates requests to a set of Modules
author:
   Joe Walker [joe at getahead dot ltd dot uk]
author:
   Mike Wilson


Field Summary
protected  AccessControlaccessControl
    
protected  booleanallowImpossibleTests
    
protected  ConverterManagerconverterManager
    
protected  CreatorManagercreatorManager
    
protected  intmaxCallCount
    
protected  Map<String, String>methodCache
    
protected  StringoverridePath
    
protected  booleanuseAbsolutePath
    


Method Summary
protected  StringcreateClassDefinition(String scriptName)
     Create a class definition string.
protected  StringcreateMethodDefinitions(String fullCreatorName)
     Create a list of method definitions for the given creator.
protected  StringcreateParameterDefinitions(String scriptName)
     Output the class definitions for all the converted objects.
protected  StringcreatePathDefinition(String scriptName, String path)
    
public  Repliesexecute(Calls calls)
    
public  Replyexecute(Call call)
    
public  StringgenerateInterfaceScript(String scriptName, String contextServletPath)
    
protected  StringgetMethodJS(String scriptName, Method method)
    
public  StringgetPathToDwrServlet(String contextServletPath)
    
public  voidsetAccessControl(AccessControl accessControl)
    
public  voidsetAjaxFilterManager(AjaxFilterManager ajaxFilterManager)
    
public  voidsetAllowImpossibleTests(boolean allowImpossibleTests)
    
public  voidsetConverterManager(ConverterManager converterManager)
    
public  voidsetCreatorManager(CreatorManager creatorManager)
    
public  voidsetDebug(boolean debug)
    
public  voidsetMaxCallCount(int maxCallCount)
    
public  voidsetOverridePath(String overridePath)
    
public  voidsetUseAbsolutePath(boolean useAbsolutePath)
     By default we use a relative path to the DWR servlet which can help if there are several routes to the servlet.

Field Detail
accessControl
protected AccessControl accessControl(Code)
The security manager



allowImpossibleTests
protected boolean allowImpossibleTests(Code)
This helps us test that access rules are being followed



converterManager
protected ConverterManager converterManager(Code)
How we convert beans - or in this case create client side classes



creatorManager
protected CreatorManager creatorManager(Code)
How we create new beans



maxCallCount
protected int maxCallCount(Code)
To prevent a DoS attack we limit the max number of calls that can be made in a batch



methodCache
protected Map<String, String> methodCache(Code)
Generated Javascript cache



overridePath
protected String overridePath(Code)
If we need to override the default path



useAbsolutePath
protected boolean useAbsolutePath(Code)

See Also:   DefaultRemoter.setUseAbsolutePath(boolean)





Method Detail
createClassDefinition
protected String createClassDefinition(String scriptName)(Code)
Create a class definition string. This is similar to EnginePrivate.getEngineInitScript except that it creates scripts for a specific class not for dwr.engine
See Also:   EnginePrivate.getEngineInitScript
Parameters:
  scriptName -



createMethodDefinitions
protected String createMethodDefinitions(String fullCreatorName)(Code)
Create a list of method definitions for the given creator.
Parameters:
  fullCreatorName - To allow AccessControl to allow/deny requests



createParameterDefinitions
protected String createParameterDefinitions(String scriptName)(Code)
Output the class definitions for all the converted objects. An optimization for this class might be to only generate class definitions for classes used as parameters in the class that we are currently generating a proxy for.

Currently the scriptName parameter is not used, we just generate the class definitions for all types, however conceptually, it should be used
Parameters:
  scriptName - The script for which we are generating parameter classes




createPathDefinition
protected String createPathDefinition(String scriptName, String path)(Code)
Create a _path member to point at DWR
Parameters:
  scriptName - The class that we are creating a member for
Parameters:
  path - The default path to the DWR servlet



execute
public Replies execute(Calls calls)(Code)



execute
public Reply execute(Call call)(Code)
Execute a single call object
Parameters:
  call - The call to execute A Reply to the Call



generateInterfaceScript
public String generateInterfaceScript(String scriptName, String contextServletPath) throws SecurityException(Code)



getMethodJS
protected String getMethodJS(String scriptName, Method method)(Code)
Generates Javascript for a given Java method
Parameters:
  scriptName - Name of the Javascript file, without ".js" suffix
Parameters:
  method - Target method Javascript implementing the DWR call for the target method



getPathToDwrServlet
public String getPathToDwrServlet(String contextServletPath)(Code)



setAccessControl
public void setAccessControl(AccessControl accessControl)(Code)
Accessor for the security manager
Parameters:
  accessControl - The accessControl to set.



setAjaxFilterManager
public void setAjaxFilterManager(AjaxFilterManager ajaxFilterManager)(Code)
Accessor for the AjaxFilterManager
Parameters:
  ajaxFilterManager - The AjaxFilterManager to set.



setAllowImpossibleTests
public void setAllowImpossibleTests(boolean allowImpossibleTests)(Code)
Do we allow impossible tests for debug purposes
Parameters:
  allowImpossibleTests - The allowImpossibleTests to set.



setConverterManager
public void setConverterManager(ConverterManager converterManager)(Code)
Accessor for the ConverterManager that we configure
Parameters:
  converterManager - The new ConverterManager



setCreatorManager
public void setCreatorManager(CreatorManager creatorManager)(Code)
Accessor for the CreatorManager that we configure
Parameters:
  creatorManager - The new ConverterManager



setDebug
public void setDebug(boolean debug)(Code)
Set the debug status
Parameters:
  debug - The new debug setting



setMaxCallCount
public void setMaxCallCount(int maxCallCount)(Code)
To prevent a DoS attack we limit the max number of calls that can be made in a batch
Parameters:
  maxCallCount - the maxCallCount to set



setOverridePath
public void setOverridePath(String overridePath)(Code)
If we need to override the default path
Parameters:
  overridePath - The new override path



setUseAbsolutePath
public void setUseAbsolutePath(boolean useAbsolutePath)(Code)
By default we use a relative path to the DWR servlet which can help if there are several routes to the servlet. However it can be a pain if the DWR engine is running on a different port from the web-server. However this is a minority case so this is not officially supported.
Parameters:
  useAbsolutePath - Does DWR generate an absolute _path property



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.