Empty @Get() annotation overwrites already retrieved representation mimetype

2009-07-25 Thread Joe Nellis
Greetings, The following code at ServerResource#doHandle(AnnotationInfo ,Variant ) seems backwards perhaps. (2.0m3snapshot) if (resultObject != null) { // TODO This is a shortcut in case the resource does not // precise the media-type of the representat

RE: Re: HTML Email

2009-07-25 Thread Jerome Louvel
Hi guys, I’ve entered a related RFE and attached Rémi’s patch to it: “Support multipart mails in JavaMail extension” http://restlet.tigris.org/issues/show_bug.cgi?id=854 We’ll get to this for 2.0 M5. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~

Re: Guidance on Atom/APP in Restlet

2009-07-25 Thread Rob Heittman
All valid points. There must be cooperation between a client and server at some level! I have two problems with RPC style implementations on the Web: 1) The RPC paradigm hides the advanced properties of the Web and makes them really difficult to leverage 2) The RPC protocol and serialization be

Re: Help! -- Error handler isn't working

2009-07-25 Thread Schley Andrew Kutz
I changed the package name last night :( http://vangaea.svn.sourceforge.net/viewvc/vangaea/trunk/src/main/java/com/hyper9/vangaea/server/rest/BaseResource.java?view=markup Here is the updated link. Thanks! -- -a "Only two things are infinite, the universe and human stupidity, and I'm not su

RE: Parameters of media-type

2009-07-25 Thread Jerome Louvel
Hi Evgeny, Thanks for reporting this issue. It should be fixed in SVN trunk. I have also trimmed spaces around parameter names when accessing them via MediaType#getParameters(). Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-

RE: Premature EOF / Broken Pipe

2009-07-25 Thread Jerome Louvel
Hi Timothy, Let us know how it goes when using Jetty for example as the HTTP server connector. If you were using Tomcat, you might want to check this issue which might be related: “getText() returns empty text with Tomcat” http://restlet.tigris.org/issues/show_bug.cgi?id=843 Best reg

RE: Resolve to Resources inside another Resource

2009-07-25 Thread Jerome Louvel
Hi Raymi, Sorry, but I'm not sure I understood your question. On the server-side, you could GET the resource at "http:///user/21"; by doing this: getContext().getClientDispatcher().get("http:///user/21";) I hope this will help. Best regards, Jerome Louvel -- Restlet ~ Founder and Lea

RE: Help! -- Error handler isn't working

2009-07-25 Thread Jerome Louvel
Hi Schley, I could open your link (404). By default, the exception doesn't appear in the browser to not expose too much internal details. You can customize the StatusService if needed. I agree it would be nice to have such an option available so I've updated this RFE: "Return clear status de

RE: Extension tunneling and matching route by extension

2009-07-25 Thread Jerome Louvel
Hi Rober, The TunnelService is active for all your application. Unless you can split your resources in two logical applications, the only way is to manually code the behavior or to reuse the engine's TunnelFilter class located in "org.restlet.engine.application". Note that you will have to pr

RE: Building the restlet modules in eclipse

2009-07-25 Thread Jerome Louvel
Hi Jim, For GAE, we currently ship a special "org.restlet.gae.jar". Extensions not included in this JAR haven't been tested with GAE yet, but some might work. Thierry is finished the implementation an automatic porting mechanism that will provide you a separate downloadable edition for GAE. It sh

RE: Non-blocking application architecture quesiton

2009-07-25 Thread Jerome Louvel
Hi Evgeny, The Jetty NIO connector don't expose NIO channels down the chain. So at the Restlet level, we communicate with Jetty using streams so your approach will work and leverage the NIO capabilities of Jetty. However, it is possible to go further by using the Grizzly connector. In this case,

RE: FileClientHelper

2009-07-25 Thread Jerome Louvel
Hi Rémi, It seems to me that Directory should indeed ignore your file because “001” and “bak” are unknown extensions. Could you enter an issue in the tracker? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Te

RE: Problem configuring spring ext in 2.0M3

2009-07-25 Thread Jerome Louvel
Hi Ryan, I have added support for ServerResource in the Spring extension after 2.0 M3. If you try with a recent 2.0 snapshot (unstable), you should get it working. If not, enter an issue as suggested by Rhett. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restle

RE: GAE + GWT + Restlet 2.0 M3 + challenge response is null on server side

2009-07-25 Thread Jerome Louvel
Hi Lauri, Thanks for sharing this workaround. The current code sets the user and password given in ChallengeResponse on the internal RequestBuilder that is used: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/http /client/RequestBuilder.html#setPassword%28java.lang.String

RE: Re: REST in mobiles

2009-07-25 Thread Jerome Louvel
Hi Abdul, J2ME has such a limited set of APIs that I highly doubt that Jersey would work there (you should ask them though). Android is a full featured Java-based OS for mobile (http://www.android.com/). Doesn't it work for you? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead develo

RE: Guidance on Atom/APP in Restlet

2009-07-25 Thread Jerome Louvel
Hi Tim, Using an object serialization representation does reintroduce strong coupling between a REST client and server. It should only be done for optimization purpose, as an alternative to more reusable and interoperable JSON / XML representations. But wait! XML and JSON do introduce coup