GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::DISPATCHTYPE::REGEX (3)

.ds Aq ’

NAME

Catalyst::DispatchType::Regex - Regex DispatchType

CONTENTS

SYNOPSIS

See Catalyst::DispatchType.

DESCRIPTION

<B>Status: Deprecated.B> Regex dispatch types have been deprecated and removed from Catalyst core. It is recommend that you use Chained methods or other techniques instead. As part of the refactoring, the dispatch priority of Regex vs Regexp vs LocalRegex vs LocalRegexp may have changed. Priority is now influenced by when the dispatch type is first seen in your application.

When loaded, a warning about the deprecation will be printed to STDERR. To suppress the warning set the CATALYST_NOWARN_DEPRECATE environment variable to a true value.

Dispatch type managing path-matching behaviour using regexes. For more information on dispatch types, see:
o Catalyst::Manual::Intro for how they affect application authors
o Catalyst::DispatchType for implementation information.

METHODS

CW$self->list($c)

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

CW$self->match( CW$c, CW$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.

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

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

Returns 1 if any regexps were registered.

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

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

CW$self->uri_for_action($action, CW$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 library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::DISPATCHTYPE::REGEX (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.