Anton Belousov > Eidolon-Driver-Router-Basic-0.02 > Eidolon::Driver::Router::Basic

Download:
Eidolon-Driver-Router-Basic-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Eidolon::Driver::Router::Basic - basic request router for Eidolon.

SYNOPSIS ^

Somewhere in application controllers:

    my $r = Eidolon::Core::Registry->get_instance;
    my $router = $r->loader->get_object("Eidolon::Driver::Router::Basic");

    print "Controller: " . $router->{"controller"}              . "\n";
    print "Handler: "    . $router->{"handler"}                 . "\n";
    print "Parameters: " . join(", ", @{ $router->{"params"} }) . "\n";

DESCRIPTION ^

The Eidolon::Driver::Router::Basic driver finds handler for each user request. Routing is based on controller names and method attributes.

Routing flow

Method attributes

Method attributes used to show router which method is responsible for which query. These attributes can combine, i.e. Default attribute could be mixed with Action and access attributes to extend query coverage that is handled by this method.

METHODS ^

new()

Inherited from "new()" in Eidolon::Driver::Router.

find_handler()

Implementation of abstract method from "find_handler()" in Eidolon::Driver::Router.

get_handler()

Inherited from "get_handler()" in Eidolon::Driver::Router.

get_params()

Inherited from "get_params()" in Eidolon::Driver::Router.

SEE ALSO ^

Eidolon, Eidolon::Applicaton, Eidolon::Driver::Router

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Anton Belousov, <abel@cpan.org>

COPYRIGHT ^

Copyright (c) 2009, Atma 7, http://www.atma7.com

syntax highlighting: