Finance::Bank::Bankwest::Parsers - feed HTTP responses to multiple parsers in succession
This module is part of distribution Finance-Bank-Bankwest v1.2.1.
This distribution's version numbering follows the conventions defined at semver.org.
This module provides a convenient means to apply several Finance::Bank::Bankwest::Parser-consuming classes to an HTTP::Response at once in order to receive structured data from it, or have the most appropriate exception thrown.
Finance::Bank::Bankwest::Parsers->test( $http_response, qw{ ParserA ParserB ... }, );
Instruct Finance::Bank::Bankwest::Parser::ParserA to inspect the supplied HTTP::Response object, returning if that parser recognises the response and deems it acceptable.
Finance::Bank::Bankwest::Parser::ParserA
If not, and that parser doesn't emit a specific exception, repeat for Finance::Bank::Bankwest::Parser::ParserB and then any other parsers supplied.
Finance::Bank::Bankwest::Parser::ParserB
If no parsers emit a specific exception, throw a Finance::Bank::Bankwest::Error::BadResponse exception directly.
return Finance::Bank::Bankwest::Parsers->parse( $http_response, qw{ ParserA ParserB ... }, );
Instruct Finance::Bank::Bankwest::Parser::ParserA to inspect the supplied HTTP::Response object, returning structured data if that parser recognises the response and deems it acceptable.
If not, and that parser doesn't emit a specific exception, pass the response, Finance::Bank::Bankwest::Parser::ParserB and any other parsers to the "test" method so that a specific exception may be thrown.
Finance::Bank::Bankwest::Error::BadResponse
Finance::Bank::Bankwest::Parser
Finance::Bank::Bankwest::Session
Finance::Bank::Bankwest::SessionFromLogin
Alex Peters <lxp@cpan.org>
This software is copyright (c) 2013 by Alex Peters.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
The full text of the license can be found in the 'LICENSE' file included with this distribution.
To install Finance::Bank::Bankwest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Bank::Bankwest
CPAN shell
perl -MCPAN -e shell install Finance::Bank::Bankwest
For more information on module installation, please visit the detailed CPAN module installation guide.