Apache::ContentHandlerApache::ContentHandler is a mod_perl extension for uniform application generation. | |
Download |
Apache::ContentHandler Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Ryan Davis
- Publisher web site:
- http://search.cpan.org/~zenspider/Apache-ContentHandler-1.3.3/ContentHandler.pm
Apache::ContentHandler Tags
Apache::ContentHandler Description
Apache::ContentHandler is a mod_perl extension for uniform application generation. Apache::ContentHandler is a mod_perl extension for uniform application generation.SYNOPSIS use Apache::ContentHandler; @ISA = 'Apache::ContentHandler'; sub handler { my $r = shift; my $algometer = new Apache::Algometer($r); my $result = $algometer->run; return $result; } sub _init { my $self = shift || die 'need $self'; $self->SUPER::_init(@_); # overrides $self->{title} = 'Project Algometer'; $self->{subtitle} = "Version $VERSION"; $self->{default_action} = 'hello'; # other variable definitions } sub hello { return 'Hello World'; }Apache::ContentHandler is a generic framework for creating mod_perl based applications. It provides a basic event mechanism and a subclassable framework for customizing actions.The synopsis shows a very simple example of what it can do. In this case, we set the default_action to 'hello', which is automatically executed. Hello in this case outputs a simple paragraph. Nothing big, but it is very simple. Note that this app runs as-is in both CGI and mod_perl. Requirements: · Perl
Apache::ContentHandler Related Software