Re: expect/continue handshake

2012-12-11 Thread Tim Peierls
It might be easier to start by writing the client side of this using the classic Restlet APIs and not the annotation-based API, setting the Expect and Content-Length headers manually and checking the response for a 100 status. --tim On Mon, Dec 10, 2012 at 9:35 AM, Ishaaq Chandy ish...@gmail.com

Re: expect/continue handshake

2012-12-11 Thread Ishaaq Chandy
Thanks for the reply Tim. That is a bit unfortunate that I can't use the annotation api for the client. What about the server? How do I hook into it in order to be able to either send a 100 or reject the request if it is unable to process it? Cheers, Ishaaq Tim Peierls wrote It might be

Get all ServerResource objects and their routes from Applicaiton

2012-12-11 Thread Paul Morris
I'm trying to figure out a way to at runtime get each ServerResource and its URI route from the org.restlet.Application API but can't seem to figure it out. Below is an example. So again I need the relative ref and the object (or even just its class). router.attach(/, tracer);