Changes between Version 4 and Version 5 of ExampleUsingXmlRpcBeans
- Timestamp:
- 10/09/06 14:53:49 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExampleUsingXmlRpcBeans
v4 v5 4 4 5 5 Sometimes parameter conversion is a straight-forward task which can be handed over to the XML-RPC runtime system. 6 When a java class fulfills certain conditions (roughly, being a java bean with comp latible types) it can be turned into aXmlRpcBean6 When a java class fulfills certain conditions (roughly, being a java bean with compatible types) it can be turned into a !XmlRpcBean 7 7 by annotating it with the @!XmlRpcBean annotation. It then can be used in every XML-RPC call without restriction.[[BR]] 8 8 9 A XmlRpcBean must have9 A !XmlRpcBean must have 10 10 11 11 - a public constructor taking no arguments … … 16 16 - it is a standard XML-RPC type 17 17 - it is annotated with a @!XmlRpc annotation and defines proper conversion methods 18 - a conversion mapping for that type is put at the XmlRpcBean (which then acts as an API itself)19 - it is an XmlRpcBean (that is,XmlRpcBeans can be nested)18 - a conversion mapping for that type is put at the !XmlRpcBean (which then acts as an API itself) 19 - it is an !XmlRpcBean (that is, !XmlRpcBeans can be nested) 20 20 - it is a Collection or Map containing a type which is XML-RPC compliant and is annotated with the @Contains annotation 21 21 … … 66 66 } 67 67 68 ---- 69 68 70 Api remote_api = XmlRpc.createClient( Api.class, "handlerId", host, port ); 69 71 … … 78 80 79 81 See also [http://delight.opendfki.de/wiki/ExampleUsingOwnConceteTypes#UsingowntypesinCollectionsandMaps How to use own types in Collections an Maps]. 82 83 Examples in source code: [http://delight.opendfki.de/repos/trunk/XmlRpcDelight/src/examples/de/dfki/util/xmlrpc/examples/xmlrpc_beans/]