Designing restlet applications

2009-06-15 Thread Matt
Hi there, I though I would ask you all a couple of questions about designing Restlet applications. I want to use the minimal number of resources that perform operations on "Users" and display them in different ways using Freemarker. So I might have some routes like: router.attach("/users", User

Re: Response for a 405 can't be parsed by SAX

2009-06-15 Thread John Prystash
Thanks for the replies guys. I definitely don't need to parse it as XML, I'm using XMLUnit in my integration testing to compare the responses (my service returns XML entities). Also, our QA tell prefers to compare XML. So I wasn't pointing it out as a shortcoming by any means, just raising th

RE: Re: Calling Restlet from Restlet

2009-06-15 Thread webpost
That did the trick. I would not have thought to look at that as a solution. String targetUrl = "riap://application/foo"; // invoke the request Response fooResponse = getApplication().getContext().getClientDispatcher().get(targetUrl); Thank you,