Example with ObjectRepresentation and annotation

4 messages Options
Embed this post
Permalink
Xavier M.

Example with ObjectRepresentation and annotation

Reply Threaded More More options
Print post
Permalink
Hello,
I've tried to write a full simple example with ObjectRepresentation and annotation...which doesn't run up to now.
I'm in Restlet 2.0 M5.

Any clue to solve the pb?

regards
Xavier

ps : you can complete it too, with POST, PUT and so on... if you want ;)


ObjectRepresentationExample.zip (10K) Download Attachment
Xavier M.

Re: Example with ObjectRepresentation and annotation

Reply Threaded More More options
Print post
Permalink
You can find attached the example completed and running ; this one retrieve a customer object from the server and made in the same time an authentification.
It uses the annotation @get and the ClientResource and ServerResource classes.
best regards
Xavier
ps : could be maybe put in the examplesin the src delivery directory?

2009/11/7 Xavier M. <[hidden email]>
Hello,
I've tried to write a full simple example with ObjectRepresentation and annotation...which doesn't run up to now.
I'm in Restlet 2.0 M5.

Any clue to solve the pb?

regards
Xavier

ps : you can complete it too, with POST, PUT and so on... if you want ;)




essai.zip (10K) Download Attachment
Xavier M.

Re: Example with ObjectRepresentation and annotation

Reply Threaded More More options
Print post
Permalink
Hello again,
You can find attached the same example as before expanded with a @put annotation (bi-directional communication).
regards
Xavier

2009/11/7 Xavier M. <[hidden email]>
You can find attached the example completed and running ; this one retrieve a customer object from the server and made in the same time an authentification.
It uses the annotation @get and the ClientResource and ServerResource classes.
best regards
Xavier
ps : could be maybe put in the examplesin the src delivery directory?

2009/11/7 Xavier M. <[hidden email]>

Hello,
I've tried to write a full simple example with ObjectRepresentation and annotation...which doesn't run up to now.
I'm in Restlet 2.0 M5.

Any clue to solve the pb?

regards
Xavier

ps : you can complete it too, with POST, PUT and so on... if you want ;)





ObjectRepresentationExample.zip (11K) Download Attachment
Thierry Boileau

Re: Example with ObjectRepresentation and annotation

Reply Threaded More More options
Print post
Permalink
Hello Xavier,

Thanks for your contribution. We will take a look at it and decide if it
can take place either in the tutorial (see
http://www.restlet.org/documentation/2.0/firstResource for example) or
in the org.restlet.example project.

Best regards,
Thierry Boileau

> Hello again,
> You can find attached the same example as before expanded with a @put
> annotation (bi-directional communication).
> regards
> Xavier
>
> 2009/11/7 Xavier M. <[hidden email]
> <mailto:[hidden email]>>
>
>     You can find attached the example completed and running ; this one
>     retrieve a customer object from the server and made in the same
>     time an authentification.
>     It uses the annotation @get and the ClientResource and
>     ServerResource classes.
>     best regards
>     Xavier
>     ps : could be maybe put in the examplesin the src delivery directory?
>
>     2009/11/7 Xavier M. <[hidden email]
>     <mailto:[hidden email]>>
>
>         Hello,
>         I've tried to write a full simple example with
>         ObjectRepresentation and annotation...which doesn't run up to now.
>         I'm in Restlet 2.0 M5.
>
>         Any clue to solve the pb?
>
>         regards
>         Xavier
>
>         ps : you can complete it too, with POST, PUT and so on... if
>         you want ;)
>
>
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2415700