mod_perl logo perl icon
previous page: Apache2::Filter - Perl API for Apache 2.0 Filteringpage up: mod_perl 2.0 APInext page: Apache2::HookRun - Perl API for Invoking Apache HTTP phases

Apache2::FilterRec - Perl API for manipulating the Apache filter record






Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt


Table of Contents

Synopsis

  use Apache2::Filter ();
  use Apache2::FilterRec ();
  
  my $frec = $filter->frec;
  print "filter name is:", $frec->name;


TOP

Description

Apache2::FilterRec provides an access to the filter record structure.

The Apache2::FilterRec object is retrieved by calling frec():

  $frec = $filter->frec;


TOP

API

Apache2::FilterRec provides the following functions and/or methods:



TOP

name

The registered name for this filter

  $name = $frec->name();

mod_perl filters have four names:

  modperl_request_output
  modperl_request_input
  modperl_connection_output
  modperl_connection_input

You can see the names of the non-mod_perl filters as well. By calling $filter->next->frec->name you can get the name of the next filter in the chain.

Example:

Let's print the name of the current and the filter that follows it:

  use Apache2::Filter ();
  use Apache2::FilterRec ();
  for my $frec ($filter->frec, $filter->next->frec) {
      print "Name: ", $frec->name;
  }


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.



TOP

Authors

The mod_perl development team and numerous contributors.






TOP
previous page: Apache2::Filter - Perl API for Apache 2.0 Filteringpage up: mod_perl 2.0 APInext page: Apache2::HookRun - Perl API for Invoking Apache HTTP phases