Re: When to use POST??

2009-12-28 Thread Niclas Hedhman
On Mon, Dec 28, 2009 at 7:35 AM, Rob Heittman rob.heitt...@solertium.com wrote: I agree.  I think that when the discussion starts to turn around which HTTP verbs map best to the idiosyncracies of relational databases (like safe transactional ID assignment for rows) it is a hint to try mapping

Modification of the Content of a Representation?

2009-12-28 Thread Sopasakis Pantelis
Hello, I'm using Restlet 2.0 m3 to build a web service and I'd like to know if there is some way to tackle this weird problem: I want the numbers 1,2,3,4,... to appear on the browser, on every 2 seconds. (In fact I need to do something more complicated, but If you give me some instructions on

slf4j extension posted?

2009-12-28 Thread Jeff Ramsdale
I see the code checked in for the announced slf4j extension but don't see the artifact posted? http://maven.restlet.org/org/restlet/ Was that a slip or has the requisite waiting period not elapsed yet? Thanks, guys! -jeff --

Re: Modification of the Content of a Representation?

2009-12-28 Thread Niclas Hedhman
On Thu, Dec 24, 2009 at 6:35 AM, Sopasakis Pantelis ch...@mail.ntua.gr wrote: Hello,  I'm using Restlet 2.0 m3 to build a web service and I'd like to know if there is some way to tackle this weird problem: I want the numbers 1,2,3,4,... to appear on the browser, on every 2 seconds. (In fact

RE: Re: Expires Header and Conditional GET with status Not Modified

2009-12-28 Thread Jerome Louvel
Hi there, This is an interesting use case, so I've entered a RFE: Add ability to set entity headers without an entity http://restlet.tigris.org/issues/show_bug.cgi?id=995 A workaround could be to issue a HEAD request after a 304 to obtain the latest metadata, including the Expires header

RE: Setting HTTP Headers without using a Representation

2009-12-28 Thread Jerome Louvel
Hi again, No need to post twice the same question... See my reply in the previous thread: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=24332 93 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder 

RE: CAS authentication in Restlet server

2009-12-28 Thread Jerome Louvel
Hi Arjohn, I've just renamed Context#verifier and Context#enroler to defaultVerifier and defaultEnroler for clarity purpose. I've also updated the Javadocs of ChallengeAuthenticator and Authenticator. The purpose of those properties is to isolate from Restlet applications, the way to verify the

RE: adding new router attachements dynamically?

2009-12-28 Thread Jerome Louvel
FYI, I’ve added a reference to Brian’s post on this page: “OSGi integration” http://wiki.restlet.org/developers/172-restlet/124-restlet.html Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/ http://www.restlet.org Noelios Technologies ~

Redirection?

2009-12-28 Thread Sopasakis Pantelis
Hi all, I need to support redirection for a resource but first return the message You will be redirected to another page in 2 seconds..., so I tried the following code... @Override protected Representation get(Variant variant) throws ResourceException { Thread thread = new Thread()

RE: slf4j extension posted?

2009-12-28 Thread Jerome Louvel
Hi Jeff, The group IDs have changed in 2.0 due to the support for editions, here is SLF4J in JSE edition: http://maven.restlet.org/org/restlet/jse/org.restlet.ext.slf4j/ Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder 

RE: performance between servlet and restlet

2009-12-28 Thread Jerome Louvel
Hi Kiwi, See related RFE entered by Thierry: Missing a way to configure the thread pool of the Netty and Grizzly connectors http://restlet.tigris.org/issues/show_bug.cgi?id=991 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~

Re: Redirection?

2009-12-28 Thread Ben R Vesco
you will be redirected in x seconds type pages are a javascript thing unless you have kept a socket open. On Sun, Dec 27, 2009 at 2:18 AM, Sopasakis Pantelis ch...@mail.ntua.gr wrote: Hi all,  I need to support redirection for a resource but first return the message You will be redirected to

Re: performance between servlet and restlet

2009-12-28 Thread kiwionly
ok thx ! regards, kiwi On Mon, Dec 28, 2009 at 8:00 PM, Jerome Louvel jerome.lou...@noelios.comwrote: Hi Kiwi, See related RFE entered by Thierry: Missing a way to configure the thread pool of the Netty and Grizzly connectors http://restlet.tigris.org/issues/show_bug.cgi?id=991 Best

RE: Re: ChallengeAuthenticator not working in GAE M6

2009-12-28 Thread webpost
Yep, that was the problem. Thanks for the help, Thierry. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2433340

RE: spring mvc like web binding for POJO

2009-12-28 Thread Jerome Louvel
FYI, there is an existing RFE that I just updated: Support bean binding and validation http://restlet.tigris.org/issues/show_bug.cgi?id=713 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: need some help with my project design

2009-12-28 Thread Jerome Louvel
Hi Duong, The reverse proxy approach is the most flexible as you remove the SOP issues. See the architecture diagrams on this page: http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/185-rest let.html However, it does require an extra request and adds some latency. So if you can

RE: GAE Blobstore

2009-12-28 Thread Jerome Louvel
Hi Pierre, I've entered a RFE and added a comment with a potential design: Support Blobstore Service http://restlet.tigris.org/issues/show_bug.cgi?id=998 Feed-back welcome! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~

RE: GAE Blobstore

2009-12-28 Thread webpost
Thanks, it would be great ! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2433395

RE: Help with jax-rs @Path matching.

2009-12-28 Thread Jerome Louvel
Hi Karel, Do you think it is a bug in Restlet extension for JAX-RS? If so, could you enter a bug report and ideally suggest a patch? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: web.xml context-params go missing

2009-12-28 Thread Jerome Louvel
Hi Dustin, The design goal is to strictly separate component level parameters from application level ones. This is intentionally done via the Context#createChildContext() method. I do see how this can be unintuitive in your context, because you basically expose only one application via the

RE: Obtaining ServletContext in 2.0-M5

2009-12-28 Thread Jerome Louvel
Hi Ben, We should fix that for 2.0 RC. I’ve updated this related RFE: “Allow transmission of parameters from web.xml to applications” http://restlet.tigris.org/issues/show_bug.cgi?id=602 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/

RE: adding new router attachements dynamically?

2009-12-28 Thread Sopasakis Pantelis
I'm not sure I understood the problem, but a reasonable solution would be the following line: router.attach(/{identifier}, SomeResource.class); then inside your resource class you can handle these identifiers. On Mon, 2009-12-28 at 11:49 +0100, Jerome Louvel wrote: FYI, I’ve added a reference

Re: Redirection?

2009-12-28 Thread Sopasakis Pantelis
How could I keep the socket open? Is there a way to do that from within the Resource class? Unfortunately javascript and HTML redirection work only with web browsers - such a practice would fail for curl clients... On Mon, 2009-12-28 at 05:17 -0800, Ben R Vesco wrote: you will be redirected in

Re: Redirection?

2009-12-28 Thread Matt Kennedy
I guess I'm not clear on your motivation for trying to accomplish this on the server. The easy way to do a redirect to another page if you want the original page to be displayed for a set period of time is to return html that has a special meta tag in the head section. See

Re: Redirection?

2009-12-28 Thread Rob Heittman
RFC 2616 :-) http://www.ietf.org/rfc/rfc2616.txt (2626 is the Y2K RFC) Sopasakis -- as HTTP itself doesn't have a means of specifying a delay before a redirect, you won't get consistent behavior across every HTTP compliant client or library. Most user-agents will act immediately on an HTTP

Re: adding new router attachements dynamically?

2009-12-28 Thread Rob Heittman
Sometimes I end up doing just that, but unless SomeResource.class is only handling a trivial set of cases, eventually SomeResource.class starts re-creating all the intelligence of Router and Route, which is not very efficient. Following the ideas in this post, we're writing up a little something

Re: Redirection?

2009-12-28 Thread Matt Kennedy
RFC 2616 :-) http://www.ietf.org/rfc/rfc2616.txt (2626 is the Y2K RFC) Woops. Hm, next time I should probably copy/paste the link instead of fat-fingering the name huh? Rob is right about everything else here too, I should have made it more clear that the meta-refresh trick is hardly

Re: Redirection?

2009-12-28 Thread Sopasakis Pantelis
First of all, thanks for the replies! I know how to do that using HTML, PHP, JSP, JS etc... My BIG question is... is there really some way to do that using just HTTP? Something like an OutputStream *directly* to the client! Is it possible to think of a response returned to a client as a message