Re: Re: Re: Re: Re: Dynamic Redirector

2013-04-28 Thread Tim Peierls
On Sun, Apr 28, 2013 at 12:58 PM, Grant wrote: > I am attaching my DynRedirector at: > http://foo:port/a > What's the code for this? It could be a Component level routing: VirtualHost host = component.getDefaultHost(); host.attach("/a", new DynRedirector(... args ...)); or an Applicati

RE: Re: Re: Re: Re: Dynamic Redirector

2013-04-28 Thread Grant
> On Sun, Apr 28, 2013 at 11:42 AM, Grant wrote: > > > > I haven't dug into this code, but I suspect you aren't manipulating > > > References properly. I advise printing out the intermediate steps of your > > > Reference computation to see where it goes wrong. > > > > That's just it, I don't thin

Re: Re: Re: Re: Dynamic Redirector

2013-04-28 Thread Tim Peierls
On Sun, Apr 28, 2013 at 11:42 AM, Grant wrote: > > I haven't dug into this code, but I suspect you aren't manipulating > > References properly. I advise printing out the intermediate steps of your > > Reference computation to see where it goes wrong. > > That's just it, I don't think it is even s

RE: Re: Re: Re: Dynamic Redirector

2013-04-28 Thread Grant
> I haven't dug into this code, but I suspect you aren't manipulating > References properly. I advise printing out the intermediate steps of your > Reference computation to see where it goes wrong. That's just it, I don't think it is even selecting my Redirector as the target for the endpoint, b/

Re: Re: Re: Dynamic Redirector

2013-04-27 Thread Tim Peierls
I haven't dug into this code, but I suspect you aren't manipulating References properly. I advise printing out the intermediate steps of your Reference computation to see where it goes wrong. Also, the template argument to Redirector is ignored if you override getTargetRef. --tim On Sat, Apr 27,

RE: Re: Re: Dynamic Redirector

2013-04-27 Thread Grant
> I don't understand what you mean by "the handling of the {rr} template". > The approach I suggested, overriding getTargetRef, ignores the template > argument entirely. > In my old code, I had: URI = hardcoded URI to resource Redirector redir = new Redirector(router.getContext(), URI + "{rr}",