NAME

MPMinus::Dispatcher - URL Dispatching

VERSION

Version 1.03

SYNOPSIS

package MPM::foo::Handlers;
use strict;

use MPMinus::Dispatcher;

sub handler {
    my $r = shift;
    my $m = MPMinus->m;

    $m->set(
            disp => new MPMinus::Dispatcher($m->conf('project'),$m->namespace)
        ) unless $m->disp;

    ...

    return Apache2::Const::OK;
}

DESCRIPTION

URL Dispatching

METHODS

new
my $disp = new MPMinus::Dispatcher(
        $m->conf('project'),
        $m->namespace)
    );
get
my $drec = $disp->get(
        -uri => $m->conf('request_uri')
    );
set
package MPM::foo::test;
use strict;

...

$disp->set(
        -uri    => ['locarr','test',
                    ['/test.mpm',lc('/test.mpm')]
                   ],
        -init     => \&init,
        -response => \&response,
        -cleanup  => \&cleanup,
        
        ... and other handlers's keys , see later ...
        
        -meta     => {}, # See MPMinus::Transaction
        
    );

HANDLERS AND KEYS

Supported handlers:

-postreadrequest
-trans
-maptostorage
-init
-headerparser
-access
-authen
-authz
-type
-fixup
-response
-log
-cleanup

See "HTTP PROTOCOL HANDLERS" in MPMinus::BaseHandlers for details

AUTHOR

Serz Minus (Lepenkov Sergey) http://serzik.ru <minus@mail333.com>

COPYRIGHT

Copyright (C) 1998-2013 D&D Corporation. All Rights Reserved

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See LICENSE file