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::DISPATCHER (3)

.ds Aq ’

NAME

Catalyst::Dispatcher - The Catalyst Dispatcher

CONTENTS

SYNOPSIS

See Catalyst.

DESCRIPTION

This is the class that maps public urls to actions in your Catalyst application based on the attributes you set.

METHODS

    new

Construct a new dispatcher.

CW$self->preload_dispatch_types

An arrayref of pre-loaded dispatchtype classes

Entries are considered to be available as Catalyst::DispatchType::CLASS To use a custom class outside the regular Catalyst namespace, prefix it with a +, like so:



    +My::Dispatch::Type



CW$self->postload_dispatch_types

An arrayref of post-loaded dispatchtype classes

Entries are considered to be available as Catalyst::DispatchType::CLASS To use a custom class outside the regular Catalyst namespace, prefix it with a +, like so:



    +My::Dispatch::Type



CW$self->dispatch($c)

Delegate the dispatch to the action that matched the url, or return a message about unknown resource

CW$self->visit( CW$c, CW$command [, \@arguments ] )

Documented in Catalyst

CW$self->go( CW$c, CW$command [, \@arguments ] )

Documented in Catalyst

CW$self->forward( CW$c, CW$command [, \@arguments ] )

Documented in Catalyst

CW$self->detach( CW$c, CW$command [, \@arguments ] )

Documented in Catalyst

CW$self->prepare_action($c)

Find an dispatch type that matches $c->req->path, and set args from it.

CW$self->get_action( CW$action, CW$namespace )

returns a named action from a given namespace.

CW$self->get_action_by_path( CW$path );

Returns the named action by its full private path.

CW$self->get_actions( CW$c, CW$action, CW$namespace )

CW$self->get_containers( CW$namespace )

Return all the action containers for a given namespace, inclusive

CW$self->uri_for_action($action, \@captures)

Takes a Catalyst::Action object and action parameters and returns a URI part such that if $c->req->path were this URI part, this action would be dispatched to with $c->req->captures set to the supplied arrayref.

If the action object is not available for external dispatch or the dispatcher cannot determine an appropriate URI, this method will return undef.

    expand_action

expand an action into a full representation of the dispatch. mostly useful for chained, other actions will just return a single action.

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

Make sure all required dispatch types for this action are loaded, then pass the action to our dispatch types so they can register it if required. Also, set up the tree with the action containers.

CW$self->setup_actions( CW$class, CW$context )

Loads all of the pre-load dispatch types, registers their actions and then loads all of the post-load dispatch types, and iterates over the tree of actions, displaying the debug information if appropriate.

CW$self->dispatch_type( CW$type )

Get the DispatchType object of the relevant type, i.e. passing $type of Chained would return a Catalyst::DispatchType::Chained object (assuming of course it’s being used.)

    meta

Provided by Moose

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::DISPATCHER (3) 2015-11-07

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