Hi Aldo, I'm glad to hear that you enjoy the project, especially considering your significant experience in this field! Let us know if you miss some features that you used to rely on with your custom solution.
Back to your question, the Redirector is the right place to look at. In your case you want to transparently redirect the request to another server, without involving the client/browser. So you need to use the MODE_CONNECTOR mode: Redirector r = new Redirector(ctx, "http://buu:7001/${relativeUri}#[if query]?${query}#[end]", Redirector.MODE_CONNECTOR); Now, you just need to create a VirtualHost for "foo:8080", attach your ProxyApplication to the host using the "/bar/" URI pattern and return the Redirector instance above as the root of your ProxyApplication, via the createRoot() method. You can look at org.restlet.util.CallModel for the list of URI template variable names, and at org.restlet.util.StringTemplate for the URI template syntax. Note that the template syntax and variable names will be changed significantly for 1.0 RC1 but the Redirector feature itself will still exist and behave similarly. Best regards, Jerome > -----Message d'origine----- > De : Aldo Bucchi [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 6 décembre 2006 11:21 > À : [email protected] > Objet : Proxying with Redirector > > Hi all, > > First off, congratulations. Restlet is simply amazing. I have been > doing the same things in a hacky way for over 6 years... what a > relief. Really. kudos. > > I am trying to create a proxy and I'm having some getting things > running. There are many options, apparently, so I'd rather ask for > advice before doing things the wrong way. > > Need to proxy the following: > > http://foo:8080/bar/a/simple/path?oh=yeah ( restlet+jetty > http on port 8080 ) > > to > > http://buu:7001/a/simple/path?oh=yeah ( weblogic ) > > Note that everything after ( and including ) the "a" part of the path > has to pass thru. > > Any pointers? > I have tried to use the redirector, and read all the docs I could > find. But I just can't get the pieces together... looks like too many > options! Just need one... the right one! > > Thanks ;) > Aldo > -- > ::::: Aldo Bucchi ::::: > mobile (56) 8 429 8300

