Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    HTML::Mason::ApacheHandler2 0.01

    Download button

    No screenshots available
    Downloads: 192  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Beau E. Cox | More programs
    Perl Artistic License / FREE
    February 19th, 2010, 01:44 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::Mason::ApacheHandler2 description

    Experimental (alpha) Mason/mod_perl2 interface

    HTML::Mason::ApacheHandler2 is highly experimental module and should only be used in a test environment.

    HTML::Mason::ApacheHandler2 was written to allow Mason to run in a 'pure' mod_perl2/Apache2 environment using the mod_perl2 native request structure as implemented by libapreq2. As such, this module is highly experimental and definitely not-ready-for-prime-time. This is an unofficial release, not supported by the Mason group. If you want to use this module in a testing environment, please address problems, issues, comments, and improvements to me, not Mason.

    When deciding to port Mason to mod_perl2 I took the approach to add Module(s) rather than patching core Mason modules. Upon investigation I discovered that all the Apache 'glue' code in Mason was contained in HTML::Mason::ApacheHandler. Therefore, I renamed and modified that module to create HTML::Mason::ApacheHandler2.

    The actual changes I made can be found in the distribution in diff/ApacheHandler.diff ( made with 'diff -Naru' ... ).

    As a result of my approach, you may install the normal Mason ( >= 1.25 ), the modules in "PREREQUISITES" below, and this module. After configuring ( see "CONFIGURATION" below ), you're ready to play.

    The ApacheHandler2 object links Mason to mod_perl2, running components in response to HTTP requests. It is controlled primarily through parameters to the new() constructor.

    handle_request() is not a user method, but rather is called from the HTML::Mason::handler() routine in handler.pl.

    HTML::Mason::ApacheHandler2 is a modified copy of the standard HTML::Mason::ApacheHandler. ApacheHandler2 MUST be used with mod_perl2.

    You may, however, run Mason with Apache2/mod_perl2 without ApacheHandler2 (see my rather dated mini-HOWTO at http://beaucox.com/mason/mason-with-apmp2-mini-HOWTO.htm), but you then use use 'CGI' requests rather than the native 'mod_perl' requests.

    The interface is the same as ApacheHandler's, Please refer to HTML::Mason, HTML::Mason::ApacheHandler, and http://masonhq.com/docs/manual/Admin.html.

    SYNOPSIS

     use HTML::Mason::ApacheHandler2;
     
     my $ah = HTML::Mason::ApacheHandler2->new (..name/value params..);
     ...
     sub handler {
     my $r = shift;
     $ah->handle_request($r);
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Mason interface | mod_perl2 interface | Perl module | Perl | Mason | interface

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM