1Catalyst::DispatchType(U3s)er Contributed Perl DocumentatCiaotnalyst::DispatchType(3)
2
3
4

NAME

6       Catalyst::DispatchType - DispatchType Base Class
7

SYNOPSIS

9       See Catalyst.
10

DESCRIPTION

12       This is an abstract base class for Dispatch Types.
13

METHODS

15       $self->list($c)
16
17       abstract method, to be implemented by dispatchtypes. Called to display
18       info in debug log.
19
20       $self->match( $c, $path )
21
22       abstract method, to be implemented by dispatchtypes. Returns true if
23       the dispatch type matches the given path
24
25       $self->register( $c, $action )
26
27       abstract method, to be implemented by dispatchtypes. Takes a context
28       object and a Catalyst::Action object.
29
30       Should return true if it registers something, or false otherwise.
31
32       $self->uri_for_action( $action, \@captures )
33
34       abstract method, to be implemented by dispatchtypes. Takes a Cata‐
35       lyst::Action object and an arrayref of captures, and should return
36       either a URI part which if placed in $c->req->path would cause
37       $self->match to match this action and set $c->req->captures to the sup‐
38       plied arrayref, or undef if unable to do so.
39

AUTHOR

41       Matt S Trout Sebastian Riedel, "sri@cpan.org"
42
44       This program is free software, you can redistribute it and/or modify it
45       under the same terms as Perl itself.
46
47
48
49perl v5.8.8                       2007-09-20         Catalyst::DispatchType(3)
Impressum