Hello,

We use this patch (on Apache::Filter 1.019) and it works ok. It won't get you up and running with Apache::Registry, but it will do if you can initialize the filter yourself.

Add this to Filter.pm:

sub Apache::Request::filter_register {
my $r= shift;
@ISA = qw(Apache::Request);
Apache::filter_register ($r);
}

Here is the usage in your own code (this is slightly subtle):

my $old_r = Apache->request();
my $filtered_r = Apache::Request->instance($old_r)->filter_register();

That should do the trick. There is probably a cleaner way to do it, but this has worked for us.

John

On Tuesday, November 12, 2002, at 02:22 PM, Richard Clarke wrote:

List,
Can anyone tell me if a module exists that combines these two modules so
that, for example, when using Apache::Dispatch one can create an instance of
Apache::Request in the handler without clobbering the overridden methods
sent as part of the Apache::Filter object. Before I try and do this I
wondered if it had already been done? Apache::RequestFilter would make sense
to me but something like this doesn't seem to exist on CPAN.

Ric




Reply via email to