Hello,
I'm afraid this is not possible. You can have only one parameter (there is
only one entity in the request).
In this case below , I wonder why the Address is not included inside the
Contact object. Does it represent the contact's address?
@Post
public ArrayList<Contact> update(Address addr, Contact contact);
regarding the other post method (the one with a list of contacts as
parameter) I will move this code into another resource. Does it add a list
of contacts to the current contact? In this case, I create a sub-resource
called Contacts, that help to cope with the contact's list of contact (as a
side note, it sounds strange ...)
Best regards
Thierry Boileau
Hi Thierry,
>
> Thanks for reply to my query. I am having a situation where I need to
> call various methods with GET/PUT annotations. For e.g. as follow.
>
> public interface ContactResource{
>
> @Get
> public ObjectRepresentation<Contact> retrive();
>
> @Post
> public ArrayList<Contact> update(Address addr, Contact contact);
>
>
> @Post
> public ArrayList<Contact> store(ArrayList<Contact> contactList);
>
> @Delete
> public void remove();
>
> }
>
> In above example I need to handle 2 different methods with POST
> annotations. One is having Address and Contact object as the
> argument(update) while other is having ArrayList<Contact> as the
> argument(store). So Is there any way to handle this kind of cases ?
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649149