org.directwebremoting.dwr20.xsd Maven / Gradle / Ivy
This is the schema for dwr.xml in DWR version 2.0
Top level conviguration element
A list of all the classes to configure as part of dwr at startup time
Define a new method of creating objects for use by Javascript. We don't just allow access to any object and some may need special code to get a reference to them
The unique name by which create elements refer to us
The fully qualified name of a class that implements Creator
Define a new way of converting between javascript objects and java objects. Many classes can have default conversion mechanisms but some require more custom conversion
The unique name by which convert elements refer to us
The fully qualified name of a class that implements Creator
Security: we must define which classes we are allowed to access because a free-for-all will be very dangerous
Allow the creation of a class, and give it a name in javascript land. A reference to a creator is required as are some parameters specific to each creator that define the objects it allows creation of. It would be nice to make the creator and IDREF rather than a CDATA, since it refers to an element defined elsewhere, however we allow multiple dwr.xml files and we might refer to one in another file.
The id of the creator to use
The name of the object to export to the browser
The scope of the created variable. The default is page.
Some elements (currently only create although there is no hard reason why convert elements should not be the same) need customization in ways that we can't predict now, and this seems like the only way to do it.
The name that must have meaning in the context of the parent element
The value to assign to this parameter
A creator can allow and disallow access to the methods of the class that it contains. A Creator should specify EITHER a list of include elements (which implies that the default policy is denial) OR a list of exclude elements (which implies that the default policy is to allow access)
The method to include in the list of methods allowed by the creator
A creator can allow and disallow access to the methods of the class that it contains. A Creator should specify EITHER a list of include elements (which implies that the default policy is denial) OR a list of exclude elements (which implies that the default policy is to allow access)
The method to exclude from the list of methods allowed by the creator
The auth element allows you to specify that the user of a given method must be authenticated using J2EE security and authorized under a certain role.
The method to add role requirements to
The J2EE role required to execute the given method
Allow conversion of a class between Java and Javascript. A convert element uses a previously defined converter and gives a class match pattern (which can end with *) to define the classes it allows conversion of. It would be nice to make the converter and IDREF rather than a CDATA, since it refers to an element defined elsewhere, however we allow multiple dwr.xml files and we might refer to one in another file.
The id of the converter to use
A class name to match for conversion
The optional classname for the parameter
A filter is a way to insert procesing tasks at various points during the processing of an Ajax call. See org.directwebremoting.AjaxFilter
The class name to use to filter requests
If we are marshalling to collections, we need to be able to specify extra type information to converters that are unable to tell from reflection what to do. This element contains some Java method definitions
© 2015 - 2024 Weber Informatics LLC | Privacy Policy