| 1 | |||||||||||
| 2 | package | ||||||||||
| 3 | ASP4::HandlerRunner; | ||||||||||
| 4 | |||||||||||
| 5 | 12 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 12 | ▶ | use warnings 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | sub new | ||||||||||
| 10 | 5145 | ▶ | { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 11 | 5145 | my ($class, %args) = @_; | |||||||||
| 12 | |||||||||||
| 13 | 5145 | return bless \%args, $class; | |||||||||
| 14 | }# end new() | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 20580 | ▶ | sub context { ASP4::HTTPContext->current } | ||||||||
|
Subroutine
context: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | sub run_handler | ||||||||||
| 21 | 5145 | ▶ | { | ||||||||
|
Subroutine
run_handler: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 22 | 5145 | my ($s, $handler_class, $args) = @_; | |||||||||
| 23 | |||||||||||
| 24 | 5145 | my $handler = $handler_class->new(); | |||||||||
| 25 | 5145 | $handler_class->init_asp_objects( $s->context ); | |||||||||
| 26 | 5145 | $handler_class->before_run( $s->context, $args ); | |||||||||
| 27 | 5145 | ▶ | if( ! $s->{did_end} ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | { | ||||||||||
| 29 | 5145 | my $res = $handler_class->run( $s->context, $args ); | |||||||||
| 30 | 5145 | $handler_class->after_run( $s->context, $args ); | |||||||||
| 31 | 5145 | return $res; | |||||||||
| 32 | }# end if() | ||||||||||
| 33 | }# end run_handler() | ||||||||||
| 34 | |||||||||||
| 35 | 12 | 1;# return true: | |||||||||
| 36 | |||||||||||