Jerome Louvel <contact <at> noelios.com> writes:
> In order to make your redirection more portable, you can do this instead:
> 
> getResponse().setRedirectRef(getRequest().getRootRef() + "/bean/" + name);
>
Hi Jerome, I guess now you have the start of the RC3 tutorial on resources...
;-) thanks it was very useful. 

In the same way that the Restlet framework provides a design supporting
URI->Resource "mapping", would it also make sense to provide a design for
generating a resource URI, i.e. a Resource->URI mapping?

There are situations where one wants to redirect to a single resource from more
than one place and it would be very nice to define the Resource->URI mapping
declaratively and simply redirect to this Resource instance. The resource 
redirection would generate the URI automatically under the covers.

Maybe a combination of a URI template and an abstract Resource API allowing it
to expose any number of key/values used to generate a final URI?

-- yuri

Reply via email to