Marcus Ramberg > Catalyst-Runtime-5.8000_07 > Catalyst::DispatchType::Regex

Download:
Catalyst-Runtime-5.8000_07.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  19
Open  15
Stalled  1
View/Report Bugs
Source   Latest Release: Catalyst-Runtime-5.90020

NAME ^

Catalyst::DispatchType::Regex - Regex DispatchType

SYNOPSIS ^

See Catalyst.

DESCRIPTION ^

METHODS ^

$self->list($c)

Output a table of all regex actions, and their private equivalent.

$self->match( $c, $path )

Checks path against every compiled regex, and offers the action for any regex which matches a chance to match the request. If it succeeds, sets action, match and captures on $c->req and returns 1. If not, returns 0 without altering $c.

$self->register( $c, $action )

Registers one or more regex actions for an action object. Also registers them as literal paths.

Returns 1 if any regexps were registered.

$self->register_regex($c, $re, $action)

Register an individual regex on the action. Usually called from the register method.

$self->uri_for_action($action, $captures)

returns a URI for this action if it can find a regex attributes that contains the correct number of () captures. Note that this may function incorrectly in the case of nested captures - if your regex does (...(..))..(..) you'll need to pass the first and third captures only.

AUTHORS ^

Catalyst Contributors, see Catalyst.pm

COPYRIGHT ^

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

syntax highlighting: