Re: Jetty integration

2009-07-21 Thread Tony Bigbee
Thanks, Jerome. After my first posting, I was able to experiment and resolve this (using 2.0m3). One thing that slowed me down is that my IDE automatically created a couple of imports for Server and another class I no longer remember that were not Restlet classes. I also didn't understand that

Re: Guidance on Atom/APP in Restlet

2009-07-21 Thread Hendy Irawan
Hi Tim, The biggest APP user I know is Google, with practically all of its API using the Google Data (GData) protocol. It's basically a extended version of APP, most due to practicality reasons prevailing over idealistic (i.e. pure APP). GData puts some extensive stress testing on APP, i.e.

RE: Help!

2009-07-21 Thread Jerome Louvel
Hi Schley, Could you send us your project (or a snippet reproducing the issue) and Restlet environment details (version, OS, etc.)? It should definitely work. BTW, I suggest that you use more meaningful email title when you post, easier for tracking and searching in the archives. Best regards,

RE: Question about 'org.restlet.engine.Engine.registerHelper(ClassLoader, URL, List, Class)'

2009-07-21 Thread Jerome Louvel
Hi Marcelo, Looking at the code in Engine#registerHelper, it appears that the class instantiation is protected by a try/catch block for Exception. It should catch the classnotfound exception, log it and continue with the next helper declared in the

RE: Re: REST in mobiles

2009-07-21 Thread Jerome Louvel
Hi Abdul, Restlet only works with Android on mobile phones, not J2ME. One way to make a phone acts as a Web server is to send request as special SMS messages. See related RFE: Add SMS server for Android http://restlet.tigris.org/issues/show_bug.cgi?id=828 Best regards, Jerome Louvel -- Restlet

RE: Addition Function

2009-07-21 Thread Jerome Louvel
Hi Abdul, I suggest that you start with the first steps tutorial: http://www.restlet.org/documentation/2.0/firstSteps Adjusting it to do some computation should be trivial. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~

RE: Receive a multipart HTTP response

2009-07-21 Thread Jerome Louvel
Hi Evgeny, Restlet doesn’t have built-in support for multipart representation yet. This is planned however: “Support composite representations” http://restlet.tigris.org/issues/show_bug.cgi?id=71 However, it is possible to parse progressively with the Restlet FileUpload extension. See

RE: Guidance on Atom/APP in Restlet

2009-07-21 Thread Jerome Louvel
Hi Henry, I was about to answer the same thing. In addition to Google, Microsoft is making a heavy use of Atom as well in its ADO.NET Data Services (ex-Astoria) technology: Overview: ADO.NET Data Services http://msdn.microsoft.com/en-us/data/bb931106.aspx?ppud=4 However, for communication with

Re: Receive a multipart HTTP response

2009-07-21 Thread Evgeny Shepelyuk
Hello ! I've tried to use commons-fileupload and it's not parsing multipart/x-mixed-replace content type. I tried both directly with commons-fileupload and with restlet extension. Commons-fileupload supports only multipart/form-data and correponding RFC 1867. All others ain't supported

RE: Wikipedia Restlet entry

2009-07-21 Thread Jerome Louvel
Hi guys, Thanks for updating this entry. I’ve been reluctant to touch it so far, as I think it should provide a neutral presentation of Restlet. So, it would be better if the Restlet users could maintain it. However, I’ll be happy to read and comment. For example, I noticed that the new

RE: Credentials

2009-07-21 Thread Jerome Louvel
Hi there, Have a look at org.restlet.data.Request#getChallengeResponse() or ServerResource#getChallengeResponse(). Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine-

RE: Setting custom HTTP headers and ATOM feeds

2009-07-21 Thread Jerome Louvel
Hi Dyaa, Regarding the Atom issue, we have recently fixed them. I suggest trying again with a Restlet 2.0 snapshot (unstable) until we release 2.0 M4. Regarding the additional HTTP headers, it is possible to define them. See this method on Request/Response:

RE: Re: Accept header sent by the client not being taken into account (2.0 snapshot from July 9th, 2009)

2009-07-21 Thread Jerome Louvel
Hi Tal, Could you send us a Zip of your test project so we can debug? Of the three option, only @Get(xml) is valid. It should expose both text/xml and application/xml variants automatically. The logic you added in doInit() shouldn't be necessary. See the attached sample code which works for

Re: Wikipedia Restlet entry

2009-07-21 Thread Rob Heittman
I agree you should avoid it, they get grumpy about that. Anyone know of any Restlet coverage in main stream media or other citable support for notability? On Tue, Jul 21, 2009 at 4:47 AM, Jerome Louvel jerome.lou...@noelios.comwrote: Hi guys, Thanks for updating this entry. I’ve been

Re: Guidance on Atom/APP in Restlet

2009-07-21 Thread Tim Peierls
Thanks -- I was particularly interested in the Google Calendar Data API, but I'd be rolling my own implementation, right? --tim On Mon, Jul 20, 2009 at 11:53 AM, Hendy Irawan he...@soluvas.com wrote: Hi Tim, The biggest APP user I know is Google, with practically all of its API using the

RE: Wikipedia Restlet entry

2009-07-21 Thread Jerome Louvel
Rob, Sounds like a good approach indeed. To answer your question about press coverage, here are two pointers from InfoQ: http://www.infoq.com/restlet Two from eWeek: http://www.eweek.com/c/a/Application-Development/Restlet-Engine-Reaches-10/

Re: Guidance on Atom/APP in Restlet

2009-07-21 Thread Tim Peierls
On Tue, Jul 21, 2009 at 4:39 AM, Jerome Louvel jerome.lou...@noelios.comwrote: However, for communication with GWT, it is indeed a better idea to rely on JSON. I have also been working on reusing the 'transparent' serialization of beans between Restlet/Server and Restlet/GWT. This

Re: Guidance on Atom/APP in Restlet

2009-07-21 Thread Tim Peierls
Do the Java Client libraries for the Google Data APIs run under GWT? I can't find any indication one way or the other. It'd be cool if they did, though. --tim On Tue, Jul 21, 2009 at 8:29 AM, Tim Peierls t...@peierls.net wrote: Thanks -- I was particularly interested in the Google Calendar

Re: Wikipedia Restlet entry

2009-07-21 Thread Rob Heittman
Thanks, that was helpful to make a start. On Tue, Jul 21, 2009 at 8:41 AM, Jerome Louvel jerome.lou...@noelios.comwrote: Rob, Sounds like a good approach indeed. To answer your question about press coverage, here are two pointers from InfoQ: http://www.infoq.com/restlet Two from

Getting POST parameters out of request

2009-07-21 Thread webpost
How is this possible? I'm using Apache HTTPClient to make a POST request, but at my resource are no parameters set (else the one parsed into the url). Isn't it possible to make a POST request without using Restlet and putting the post object into a Representation object? I'm using 2.0-M3.

Getting POST parameters out of request

2009-07-21 Thread webpost
How is this possible? I'm using Apache HTTPClient to make a POST request, but at my resource are no parameters set (else the one parsed into the url). Isn't it possible to make a POST request without using Restlet and putting the post object into a Representation object? I'm using 2.0-M3.

RE: Problem configuring spring ext in 2.0M3

2009-07-21 Thread webpost
If anyone else has this problem, I got SpringBeanRouter working by making my own subclass, like so: http://pastie.org/553359 I guess this should really go into SpringBeanRouter and SpringBeanFinder, so if the maintainers of the spring extension would like I can post a patch with some unit

RE: Re: REST in mobiles

2009-07-21 Thread webpost
Hi, Thank you for your response How about JSR300 and jersey does it work with mobiles? Hi Abdul, Restlet only works with Android on mobile phones, not J2ME. One way to make a phone acts as a Web server is to send request as special SMS messages. See related RFE: Add SMS server for

Re: Getting POST parameters out of request

2009-07-21 Thread Fabian Mandelbaum
Parameters as in URL?param1=value1param2=value2... ? If so, you need to do something like this on your resource's doInit() method: Form query = getRequest().getResourceRef().getQueryAsForm(); String value1 = query.getFirstValue(param1); String value2 = query.getFirstValue(param2); I hope to

Re: Guidance on Atom/APP in Restlet

2009-07-21 Thread David Bordoley
On Tue, Jul 21, 2009 at 6:08 AM, Tim Peierlst...@peierls.net wrote: Hmm, the wind is going out of my sails. I started by recognizing that AtomPub seemed to be a natural fit for my domain, and now I'm looking at JSON/serialized beans and optional plain Atom feeds. (Optional in the sense that my