X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FMaypole.pm;h=b5da323ee9e544421e10a8525916d709a8b0f188;hb=40c2f06cbbc9b4efaf93deb03f6e2ddf114555f0;hp=4c66a6729246c8baf84d420f461a5dd3bac42f4c;hpb=52d254200d32b47402461d325c2836c35af99201;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 4c66a67..b5da323 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -1,6 +1,5 @@ package Maypole; use base qw(Class::Accessor::Fast Class::Data::Inheritable); -use attributes (); use UNIVERSAL::require; use strict; use warnings; @@ -63,6 +62,7 @@ sub handler { my $r = bless { config => $class->config }, $class; $r->get_request($req); $r->parse_location(); + warn "Request path: $r->{path}" if $r->debug; my $status = $r->handler_guts(); return $status unless $status == OK; $r->send_output; @@ -303,6 +303,13 @@ You should only need to define this method if you are writing a new Maypole backend. Otherwise, see L +=head3 get_request + +You should only need to define this method if you are writing a new +Maypole backend. It should return something that looks like an Apache +or CGI request object, it defaults to blank. + + =head3 is_applicable Returns a Maypole::Constant to indicate whether the request is valid. @@ -387,6 +394,33 @@ Get/set the output content type. Default: text/html Sends the output and additional headers to the user. +=head3 call_authenticate + +This method first checks if the relevant model class +can authenticate the user, or falls back to the default +authenticate method of your Maypole application. + + +=head3 call_exception + +This model is called to catch exceptions, first after authenticate +,then after processing the model class, and finally to check for +exceptions from the view class. + +This method first checks if the relevant model class +can handle exceptions the user, or falls back to the default +exception method of your Maypole application. + + +=head3 handler + +This method sets up the class if it's not done yet, sets some +defaults and leaves the dirty work to handler_guts. + +=head3 handler_guts + +This is the core of maypole. You don't want to know. + =head1 SEE ALSO There's more documentation, examples, and a wiki at the Maypole web