OpenFrame::WebApp::Segment::Decline - abstract class for declining to process a pipeline.
# abstract class - cannot be used directly use Pipeline; use OpenFrame::WebApp::Segment::Decline::Something; my $sub_pipe = new Pipeline; my $decliner = new OpenFrame::WebApp::Segment::Decline::Something; $sub_pipe->add_segment( $decliner, ... ); my $pipe = new Pipeline; $pipe->add_segment( ..., $sub_pipe, ... ); ... $pipe->dispatch; # sub_pipe will not be executed if Decline::Something's # should_decline is true.
The OpenFrame::WebApp::Segment::User class provides a standard way of declining to continue processing a Pipeline.
OpenFrame::WebApp::Segment::User
This class inherits its interface from Pipeline::Segment.
Pipeline::Segment
Returns a Pipeline::Production with $self->message if $self->should_decline is true.
Pipeline::Production
abstract method.
message to decline with. defaults to 'declined'.
Steve Purkis <spurkis@epn.nu>
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
To install OpenFrame::WebApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame::WebApp
CPAN shell
perl -MCPAN -e shell install OpenFrame::WebApp
For more information on module installation, please visit the detailed CPAN module installation guide.