> On 16 Sep 2016, at 17:58, Jörg Richter <j...@deepamehta.de> wrote:
> 
>               // this constructor is invoked by DM4 Webservice / JAX-RS
>               public EditablePerson(JSONObject json) throws JSONException {
>                       this.firstName = json.getString("firstName");
>                       this.lastName = json.getString("lastName");
>               }

Note also that in your JSON-constructor you're not required to handle the 
JSONException yourself.
You just can declare it. It is handled my DM's JAX-RS providers then (see 
ObjectProvider in module dm4-webservice).

Cheers,
Jörg

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
devel mailing list
devel@lists.deepamehta.de
http://lists.deepamehta.de/mailman/listinfo/devel-lists.deepamehta.de

Reply via email to