restlet-2.0

How to access XML object in Restlet 2.0 thats wrapped inside a Representation object?

Hi I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object ...

Get Request Attributes in Restlet 2.0

I'm using Restlet to make a RESTful platform. I haven't used it before, but I decided to use 2.0 because it is better to start with the latest and greatest technology, right? The key thing I am looking for is the ability to have someone to put in a URL like http://mysite/New%20York/3 and have the service respond with something like [Ne...

Restlet basic HTTP Authentication : Help required

Hi All, I am running Restful web service on 8182 port using restlet framework. I am trying to authenticate user to hit the service. i.g. I have a query string like this http://localhost:8182/api/service/customers/?key="XXXXXXXXX" My doubts are: How to get value of parameter key in Resource class/Application class, so i can authentic...

How can I disable logging in Restlet 2.0?

I simply want to disable Restlet's logging to stdout/stderr in my project and forward all Restlet logging through the SLF4J facade provided by org.restlet.ext.slf4j. Is there an easy way to do this? ...

RESTlet 2.0 tutorial application does not work on appengine

I have been playing with the source code available from the following tutorial. The GWT/GAE application works in development mode, however when its deployed, the server always returns the response in the JSON format. I am using the Restlet 2.0 Testing jars, and have also included the dependent libraries. thank you ...

Request Accept media type in RESTlet 2

How can I identify the resource media type in RESTlet2, I tried following in my class extended from ServerResource @Get public Object onGET(){ System.out.println("================="); System.out.println(this.getRequestEntity().getMediaType()); ... It prints a null when I do any request. I want to get the list of all Accept medi...

org.restlet: Posting JSON content against webservice returns HTTP error 411 (length required)

Simplified code example: http://pastebin.com/9ZQxSXi9 Hi I wanted to experiment with the restlet 2.0 library and the gpodder webservice but somehow i reached a point where I can't see the wood for the trees. The service in the example requires HTTP authentication and to post some JSON content to a URL. Nothing that complicated but som...