Re: Reading/setting date header fields is extreme slow on android

2011-02-17 Thread fritzr
Hi Tim, thank you for your quick response. As of now, I really can not use the restlet framework at all. During the login I have 3 calls, all of them taking in sum so much time, that in 80% the thread call times out… I may have another solution, which might work for our case. Because we wrote our

RE: Re: ClientResource without error? (Restlet 2.0.5)

2011-02-17 Thread Chris Davis
Oh I thought he only wanted the status. but could you not just call res.getResponse().getEntity()? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2705025

Re: Reading/setting date header fields is extreme slow on android

2011-02-17 Thread Tim Peierls
Sure sounds like something else is going on in your case. What release of Restlet are you using? More recent releases should be using InternetDateFormat instead of SimpleDateFormat. --tim On Thu, Feb 17, 2011 at 3:39 AM, fritzr fr...@work.de wrote: Hi Tim, thank you for your quick response.

Re: Setting identifier with converter Service

2011-02-17 Thread gonzajg
Thanks again Thierry! Though I realized that I needed to return a representation in order for that to work so I just return an empty representation in post methods with the identifier set. -- View this message in context:

Re: Changing content type

2011-02-17 Thread Tim Peierls
I replaced the JacksonConverterService from the Jackson Restlet extension with my local subclass (LocalJacksonConverterService) in order to override its handling. At startup, I remove the existing one from the Engine and then add my local version. I do it for a different reason -- to provide a

Re: Changing content type

2011-02-17 Thread gonzajg
Tim thanks again! You helped me before with your solution to modify the objectmapper so now I did as you said and found out that by changing: private static final VariantInfo VARIANT_JSON = new VariantInfo( MediaType.APPLICATION_JSON); a new variant: private static final VariantInfo

RE: Re: Is Multiple Get and Put annotations Possible?

2011-02-17 Thread Hetal Gaglani
Can we have multiple @Get and @Put for different URL's pointing to them?? For eg: For URI: /car/nissan, I have a @Get(json) method pointing to return nissan car attributes as json For URI: /car, I need just a list of car attributes to be returned as json But both these URI's are pointing to the

Re: Re: Is Multiple Get and Put annotations Possible?

2011-02-17 Thread Fabian Mandelbaum
Hello Hetal, you'd rather use two different resource classes here, because usually, in RESTful design, a collection of X is a different resource than X itself. So in your example, you can have the following resources/URI templates/server resource classes: A car: /cars/{car}, CarServerResource A