Changes between Version 6 and Version 7 of ExampleUsingXmlRpcBeans
- Timestamp:
- 05/08/07 10:12:56 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExampleUsingXmlRpcBeans
v6 v7 13 13 - like a java bean: for each property which is supposed to be transported over XML-RPC there has to exist a public getter and setter method 14 14 15 - each property type has to be a XML-RPC compliant type, that is it has to have one of the follwoing properties:15 - each property type has to be a XML-RPC compliant type, that is, it has to have one of the following properties: 16 16 - it is a standard XML-RPC type 17 17 - it is annotated with a @!XmlRpc annotation and defines proper conversion methods 18 18 - a conversion mapping for that type is put at the !XmlRpcBean (which then acts as an API itself) 19 19 - it is an !XmlRpcBean (that is, !XmlRpcBeans can be nested) 20 - it is a Collection or Map containing a type which is XML-RPC compliant and is annotated with the @Contains annotation20 - it is a Collection, Map or array containing a type which is XML-RPC compliant 21 21 22 23 Technically, an !XmlRpcBean is converted into a XML-RPC STRUCT. The field names of the tranfered map are the property names derived from the bean class. 22 Technically, an !XmlRpcBean is converted into a XML-RPC STRUCT. The field names of the transfered map are the property names derived from the bean class. 24 23 25 24 … … 52 51 public interface Api 53 52 { 54 @Contains(CoffeeBean.class)55 53 Collection<CoffeeBean> getAllBeans(); 56 54 }