Re: File extensions to select variants

2008-03-19 Thread keke
I am afraid that making this a default feature of application a bit dangerous. Why not create a filter to do this? Users can then apply the filter if they want this feature. It might be possible the ".xxx" suffix is not served as a file extension rather than a special meaning for a service, If th

Re: changing the router's route list

2008-03-19 Thread Jim Alateras
Thierry Boileau wrote: Hello Jim, I've made some tests that I suspect to be too simple. I've just added a public "updateRoute" method on my application which I call between 2 loops of client calls, but I am not able to reproduce your case. will put something together. What method on Router act

Velocity MVC

2008-03-19 Thread ozhan
Hi, I made simple velocity template which includes a html form. It works well and i handle form paramters in the 'Resource:handlePost()' method. Is it possible to render same template without using getResponse().redirect???(...). Because i lost the model object if i refer the page to the new R

Re: Specifying a specific client connector

2008-03-19 Thread Dan Diephouse
Imagine this scenario though - you have two threads creating clients with different implementations. If I have to explicitly set up engine properties then I have to make sure the threads execute sequentially. Am I missing something? It'd great if in the future there was a way to specify this i

Re: Specifying a specific client connector

2008-03-19 Thread Thierry Boileau
Hello Dan, I think you can have a look at the following classe: com.noelios.restlet.test.BaseConnectorsTestCase. It is a base class that allows to cross server/client connectors and test each combination (see also GetTestcase in the same package). best regards, Thierry Boileau On Wed, Mar 19,

Specifying a specific client connector

2008-03-19 Thread Dan Diephouse
I'm doing some experimentations with Restlet and have come up with a case were I wish to have multiple client connector implementations on the classpath. When I create the Client object I'd like to specify which implementation Restlet should use. Is there any way to do this? AFAICT from looking

Reference with baseref and absolute path

2008-03-19 Thread Jeroen Goubert
Hello, I'm using context.getClientDispatcher().get(reference) method for my source resolving needs. The reference itself is constructed by new Reference(baseref, "path-that-could-be-absolute").getTargetRef(). When resolving relative paths, all is well, but when resolving absolute paths I have

Re: Serving PDF content

2008-03-19 Thread Ben Sgro
Hello Michael, I was originally going to provide my own implementation for: public Representation getRepresentation(Variant variant) { My question should have also asked about specifics of serving pdf data. I'm very new to java/groovy. I'll google a bit more. - Ben Michael Terrington wrot

Re: changing the router's route list

2008-03-19 Thread Thierry Boileau
Hello Jim, I've made some tests that I suspect to be too simple. I've just added a public "updateRoute" method on my application which I call between 2 loops of client calls, but I am not able to reproduce your case. Could you send a reproductible test case (maybe in standalone mode)? What is you

Re: File extensions to select variants

2008-03-19 Thread Tim Peierls
On Tue, Mar 18, 2008 at 4:57 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > The solution we are now considering is to enhance the TunnelService (one > for > each application) to support the automatic modification of the "Accept", > "Accept-Language", "Accept-Encoding", "Accept-Charset" headers (ac

changing the router's route list

2008-03-19 Thread Jim Alateras
I seem to be having a issue changing the routes on a Router after the Application.createRoot method is called. I am using an Application in the context of a Servlet. I set up a minimum number of routes during startup and then at some later stage I replace those routes with new ones doing somet

RE: Serving PDF content

2008-03-19 Thread Jerome Louvel
Hi Adam, We recently added a warning message when a resource was accessed but has no variant. Otherwise, I'm not sure what we could do... Other ideas? :) Best regards, Jerome > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De > la part de Adam Rosien > Envoy