RE: resource scheme

2009-04-15 Thread Jerome Louvel
Hi there, As it seems more like a general REST question, I suggest that you have a look at some REST specific information: http://www.restlet.org/about/faq#04 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://

Restlet 1.2 M2, Simple, and HTTPS

2009-04-15 Thread MattyJ
Hi there, The application I'm building uses the simpleframework. This morning I upgraded from Restlet M1 to M2 which also included a new version of simple 4.1.9. (It was 3.1.3) Prior to the upgrade HTTPS was working fine now for some reason when ever I try and access any https url it seems to

Re: Restlet and maven

2009-04-15 Thread Rémi Dewitte
I will try something as soon as possible ! Rémi On Wed, Apr 15, 2009 at 23:19, Jerome Louvel wrote: > Hi Rémi, > > In our code organization, resources are part of the Java source directory > (contrary to Maven's default layout). > Could you suggest a fix? > > Best regards, > Jerome Louvel > --

RE: Restlet and maven

2009-04-15 Thread Jerome Louvel
Hi Rémi, In our code organization, resources are part of the Java source directory (contrary to Maven's default layout). Could you suggest a fix? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-f

RE: Bug in HttpAmazonS3Helper class

2009-04-15 Thread Jerome Louvel
Hi Matt, Thanks for reporting this. I've fixed the bug (due to an evolution in S3) in both 1.1 branch and SVN trunk. I've also added proper unit test cases to make sure there is no regression. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Te

RE: Re: Google AppEngine and Restlet

2009-04-15 Thread Jerome Louvel
Hi Richy, Thanks for sharing your experience! When I did the adaptation of Restlet to GAE (resulting in the new "org.restlet.gae.jar" available in recent snapshots), I took the source code and had to remove many classes that didn't compile due to the lack of sockets and SSL support (mainly the in

RE: Entity not set when setting it from storeRepresentation

2009-04-15 Thread Jerome Louvel
Hi Matthieu, This looks weird indeed. Could you open an issue report? http://www.restlet.org/community/issues Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De :

RE: YAJSW as a replacement for Tanuki's Java Service Wrapper

2009-04-15 Thread Jerome Louvel
Thanks Tal for finding this new alternative. For those interested, they can track the future replacement of Tanuki due to its licensing change (from LGPL to GPL). YAJSW is the best alternative so far. Let's hope it will mature quickly: "Replace Tanuki Wrapper" http://restlet.tigris.org/issues/s

Re: FreeMarker Template Loading

2009-04-15 Thread Dustin N. Jenkins
Kick arse! Thanks Jerome. Dustin Jerome Louvel wrote: > Hi Dustin, > > Thanks for reporting this issue. > > I have just added a ContextTemplateLoader class to FreeMarker extension that > will allow you to achieve the same result as the > Configuration#setServletContextForTemplateLoading() met

RE: ServerResource conditional mode

2009-04-15 Thread Jerome Louvel
Hi David(s), The Atom extension currently provides support for Atom and AtomPub representations (Feed and Service classes are deriving SaxRepresentation). For a more complete server-side support of AtomPub, I suggest that you have a look at the Atomojo project from Alex Milowski which is based on

Re: Scripted Restlet - Demo Distribution

2009-04-15 Thread Rob Heittman
Sorry I was not able to reply to this yesterday ... the airlines were conspiring against me. Thanks for the clarification, Jerome, I wasn't sure what kind of feedback to give. Personally, I also think that making this the "Scripturian" extension is the way to go. Tal, I hear you about the "accide

RE: FreeMarker Template Loading

2009-04-15 Thread Jerome Louvel
Hi Dustin, Thanks for reporting this issue. I have just added a ContextTemplateLoader class to FreeMarker extension that will allow you to achieve the same result as the Configuration#setServletContextForTemplateLoading() method. It is checked in SVN trunk and will be available in the next snap

Re: Guards through Spring

2009-04-15 Thread Dustin N. Jenkins
Great, thanks Rhett! I just tried overriding it to include the Guards, but I get an exception from the SpringBeanFinder's createResource() method, so some more tweaking will be needed. I'll put in a ticket for it. Cheers, Dustin Rhett Sutphin wrote: > Hi Dustin, > > >> I'm using Restlet 1

Re: Guards through Spring

2009-04-15 Thread Rhett Sutphin
Hi Dustin, > I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that > it only picks up those URLs that are tied to a Resource, and not a > Guard. Would it be appropriate to simply override the > postProcessBeanFactory() method to look for Guards too? Would this be > considered a

discuss@restlet.tigris.org

2009-04-15 Thread Rob Heittman
In the REST architectural style, each request/response cycle is stateless, which implies that each request carries all the information necessary to service it; this includes any needed authentication credentials. http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm#sec_5_1_3 Sin

Guards through Spring

2009-04-15 Thread Dustin N. Jenkins
I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that it only picks up those URLs that are tied to a Resource, and not a Guard. Would it be appropriate to simply override the postProcessBeanFactory() method to look for Guards too? Would this be considered a bug/issue or is th

RE: Restlet 1.2 M2 released

2009-04-15 Thread Jerome Louvel
Hi Tim, Your idea of optionally verifying annotations values with an annotation processor is excellent. I've updated the spec and the RFE to keep track of your suggestion. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noe

discuss@restlet.tigris.org

2009-04-15 Thread fgr81
Hi stephank, I refer to first case, because I'm doing an application where the user interacts often with his data. For now, I know only HTTP_BASIC. Thank you for the answer... -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMess

discuss@restlet.tigris.org

2009-04-15 Thread Stephan Koops
Hi fgr81, what do you mean with "continuous re-send"? That it is send before every new request ("on every click to a link in th browser"), or is it send many times before one request is responded? * If it is the first case, than is right in HTTP, because the server holds no state abou

RE: Redirect in Guard#authenticate

2009-04-15 Thread webpost
I'm not sure! I guess there is a solution but I haven't tested it yet. the solution I see is to override Guard#doHandle(Request,Response) e.g. if authenticate returns AUTHENTICATION_MISSING I can redirect the client to the external website. Matt

discuss@restlet.tigris.org

2009-04-15 Thread fgr81
Hi, I'm in the my first restlet work, and I've a problem with login and no_session-concept: ok to use HTTP_BASIC challenge, but is there a way to avoid the continuous re-send of username and password? -- http://restlet.tigris.org/ds/viewMessage

RE: Redirect in Guard#authenticate

2009-04-15 Thread fgr81
have you found any solutions? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1724236

Re: Scripted Restlet - Demo Distribution

2009-04-15 Thread Tal Liron
I agree, Jerome. Hopefully we can find a way to merge functionality and concerns and keep Restlet small and clean. To continue brainstorming on this fresh start -- perhaps we can think of the org.restlet.ext.script as a kind of integrator for a few script-related extensions? I think we already

RE: Scripted Restlet - Demo Distribution

2009-04-15 Thread Jerome Louvel
Hi Tal an all, Regarding "scriptlet" this is a term already used by the official Scripting project for a different purpose (scripted Applet): https://scripting.dev.java.net/ So, I suggest that we simply use the generic "script" term instead of "scriptlet". Also, "scriptlet" is a word close to "res

Re: restlet as a jax-rs implementation

2009-04-15 Thread Stephan Koops
Hi Philippe, is "prefix" also the @Path on your root resource class? Than you have to use only "/*" as url-pattern. To your first question I can't answer, because of my missing time other ones worked on the JAX-RS extension. best regards Stephan > Hi > > > I have an existing jax-rs applicati

restlet as a jax-rs implementation

2009-04-15 Thread Philippe Marschall
Hi I have an existing jax-rs application and would like to use restlet as an implementation. My web.xml currently looks like this: RestletServlet com.noelios.restlet.ext.servlet.ServerServlet org.restlet.attribute.application com.acme.MyApplication Restle

Re: Try to get Redirector working in GAE

2009-04-15 Thread Mikhail Spirydonau
Hi Jerome, I tried updated version of org.restlet.gae.jar. It worked fine on a local dev server. Having deployed it onto server got the following: java.lang.NoClassDefFoundError: org/restlet/engine/servlet/ServletLogger at org.restlet.ext.spring.SpringServerServlet.createApplication(Spri

Re: Try to get Redirector working in GAE

2009-04-15 Thread Mikhail Spirydonau
OK, I just realised that the error is actually thrown in SpringServerServlet.createApplication() line 94. There is no mentioning of ServletLogger anywhere in it, neither it was there before and the only thing I changed is the package it extends ServerServlet from. You can clearly see from the stack

Re: Try to get Redirector working in GAE

2009-04-15 Thread Mikhail Spirydonau
It is all quite obvious, line 94 in SpringServerServlet makes use of ServletContextAdapter which in turn uses ServletLogger. Strangely though as this is the only use of ServletContextAdapter in the entire Restlet+extensions codebase. Reverted to parentContext.createChildContext() used in the base S