Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.324.200 Times

ModPerl::ParamBuilder 0.08

  Date Added: March 13, 2010  |  Visits: 942

ModPerl::ParamBuilder

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



ModPerl::ParamBuilder is a Perl module that makes building custom Apache directives easy. SYNOPSIS package MyApp::Parameters; use ModPerl::ParamBuilder; use base qw( ModPerl::ParamBuilder ); my $builder = ModPerl::ParamBuilder->new( __PACKAGE__ ); # Build simple one argument parameter $builder->param( Template ); $builder->param( PageTitle ); $builder->param( ItemsPerPage ); # Build an On/Off parameter $builder->on_off( Caching ); # Build a Yes/No parameter $builder->yes_no( AutoCommit ); # Build a no argument/flag parameter $builder->no_arg( Active ); # Build a one argument parameter with a custom error message # and special configuration hash key $builder->param( { name => SMTPServer, err => SMTPServer xx.xx.xx.xx, key => smtp_server, }); # Load the configuration into Apache $builder->load; ################################################ # And elsewhere in your application ################################################ package MyApp::Main; # Retrieve the configuration like so my $params = MyApp::Parameters->new; my $conf_ref = $params->get_config( $r ); # Or if you have PerlOptions +GlobalRequest on then you can just # call my $conf_ref = $params->get_config; One of the neatest features of mod_perl 2.0 is the ability to easily create your own custom Apache directives. Not only are they more efficient to use compared to PerlSetEnv, PerlPassEnv, PerlAddVar, and PerlSetVar, but they give your application a more polished and professional look and feel.. Not to mention theyre just plain cool. This module aims to make the already easy, even easier. Note that you MUST load your parameter module with PerlLoadModule in your httpd.conf and not PerlModule. This is necessary because Apache needs to load your module earlier than usual in the startup to be able to read its own configuration now. LIMITATIONS The biggest limitation is that this module ONLY works with mod_perl 2.0 and above. There are no plans to support mod_perl 1.x for this module, trust me you want to upgrade to mod_perl 2 as soon as you can. This modules intent is not to replace the underlying mod_perl APIs nor is it intended to be used for complicated cases where special processing is needed. It is intended to make the simple things simple. Some things to keep in mind when using ModPerl::ParamBuilder This module does not restrict where the directives can be used in Apaches httpd.conf. To restrict directives to particular area ( only in main server conf, a VirtualHost, or a Location, etc ) you will need to use the mod_perl APIs to build your directives. This also does not do, by default, any error checking or validation on the arguments passed to directives. If you create a directive NumberOfItemsPerPage and then put: NumberOfItemsPerPage rhubarb Apache will not see this as an error and your configuration hash for the key NumberOfItemsPerPage will contain the string rhubarb. You can validate this data in three different ways: 1) Validate the configuration data in your application prior to using it. 2) Instruct ModPerl::ParamBuilder to use a special function for processing the arguments by passing the func option. 3) Revert to using the mod_perl API where you have more control. See the appropriate mod_perl 2.0 API modules for how to accomplish more in depth processing of directives and their data..

Requirements: No special requirements
Platforms: Linux
Keyword: Apache Building Custom Directives Libraries Mod Modperl Modperlparambuilder Module Myapp Numberofitemsperpage Parambuilder Parameter Perl Perl Module
Users rating: 0/10

License: Freeware Size: 8.19 KB
USER REVIEWS
More Reviews or Write Review


MODPERL::PARAMBUILDER RELATED
Libraries  -  Apache::Wyrd 0.94
Apache::Wyrd is a Perl module for HTML embeddable perl objects under mod_perl. Apache::Wyrd is the core module in a collection of interoperating modules that allow the rapid object-oriented development of web sites in Apaches mod_perl...
174.08 KB  
Libraries  -  Apache::ErrorControl 1.026
Apache::ErrorControl Perl module is an Apache Handler for Templating Apache Error Documents. This mod_perl content handler will make templating your ErrorDocument pages easy. Basically you add a couple of entries to your httpd.conf file restart...
10.24 KB  
Libraries  -  Apache::TestMB 1.28
Apache::TestMB is a subclass of Module::Build to support Apache::Test. SYNOPSIS Standard process for building & installing modules: perl Build.PL ./Build ./Build test ./Build install Or, if youre on a platform (like DOS or Windows) that...
143.36 KB  
Libraries  -  Apache::CustomKeywords 0.03
Apache::CustomKeywords is a customizable toolbar for MSIE. SYNOPSIS # 1. As an Apache proxy Listen 8888 PerlTransHandler +Apache::CustomKeywords CustomKeyword cpan http://search.cpan.org/search?mode=module&query=%s...
3.07 KB  
Misc. Server Tools  -  AsteriskNOW 1.5.0
AsteriskNOW is the fastest way to get started building custom telephony solutions with Asterisk. Simply download the .iso file, burn it to a CD, drop it into the CD or DVD drive on the target computer and in less than 30 minutes you will have a...
595.34 MB  
Network & Internet  -  mod_lock.c 1.0
mod_lock.c Apache module allows to conditionaly lock a part of a web server by just creating a file in a predefined location. This feature is useful for system maintenance on multi VirtualHosted systems. Configuration: Integrating into Apache...
6.14 KB  
Application Add-Ins  -  Resume Builder and Job Search Manager 1.8
Free Resume Builder and Job Search Manager software to manage job search process using: - Resume Building Wizard - Employment and Personal References - Attachments including certifications and qualifications - ValidateJOB Report - Job Search...
7.12 MB  
Database Tools  -  phpQLAdmin 2.3.7
phpQLAdmin is designed primarily for administration of a QmailLDAP user database, but also has (local/remote) EZMLM management, Bind9/LDAP (using the LDAP SDB driver), QmailLDAP/Controls and Apache Web server management abilities (using the...
768 KB  
Libraries  -  Apache::AuthPerLDAP 0.5
Apache::AuthPerLDAP is a mod_perl PerLDAP Authentication Module. SYNOPSIS # Authentication Realm and Type (only Basic supported) AuthName "Foo Bar Authentication" AuthType Basic # Any of the following variables can...
3.07 KB  
Installer/Uninstaller Tools  -  Apache Toolbox 1.5.72
Apache Toolbox provides a means to easily compile Apache with SSL, PHP (v4 or v3), MySQL, APC (Alternative PHP Cache), mod_auth_nds, mod_dynvhost, WebDAV, mod_fastcgi, mod_gzip, mod_layout, mod_throttle, mod_accessref, mod_auth_sys, mod_bandwidth,...
92.16 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB