The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Dispatch - Base class for dispatch.

DESCRIPTION

It is a base class for dispatch.

To do the function as Dispatch, necessary minimum method is offered.

Egg::Dispatch::Standard, Egg::Dispatch::Fast,

METHODS

dispatch_map ([DISPATCH_HASH])

The setting of dispatch is returned.

When DISPATCH_HASH is given, it is set as dispatch.

  Egg->dispatch_map (
    _default => sub {},
    hoge     => sub { ... },
    );
  • Alias = run_modes

HANDLER METHODS

Egg::Base has been succeeded to.

new

Constructor.

action

$e->action is returned.

stash

$e->stash is returned.

config

$e->config is returned.

page_title

$e->page_title is returned.

target_action

The URI passing to decided action is assembled and it returns it.

mode

Accessor to treat mode.

label

Accessor to treat label.

default_mode

The mode of default is returned.

It is revokable in 'deispath_default_name' of the configuration. Default is '_default'.

default_name

The template name of default is returned.

It is revokable in 'template_default_name' of the configuration. Default is 'index'.

SEE ALSO

Egg::Release, Egg::Base, Egg::Dispatch::Standard, Egg::Dispatch::Fast,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.