| 1 | package OAuth::Lite2::Server::Context; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use base 'Class::Accessor::Fast'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | __PACKAGE__->mk_accessors(qw(request data_handler)); | |
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | OAuth::Lite2::Server::Context - request context object. | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | my $context = OAuth::Lite2::Server::Context->new({ | ||
| 17 | request => $req, | ||
| 18 | data_handler => YourDataHandler->new, | ||
| 19 | }); | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | request context object. | ||
| 24 | |||
| 25 | =head1 METHODS | ||
| 26 | |||
| 27 | =head2 request | ||
| 28 | |||
| 29 | accessor for current L<Plack::Request> object. | ||
| 30 | |||
| 31 | =head2 data_handler | ||
| 32 | |||
| 33 | accessor for L<OAuth::Lite2::Server::DataHandler> object. | ||
| 34 | |||
| 35 | =head1 SEE ALSO | ||
| 36 | |||
| 37 | L<OAuth::Lite2::Server::DataHandler> | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Lyo Kato, E<lt>lyo.kato@gmail.comE<gt> | ||
| 42 | |||
| 43 | =head1 COPYRIGHT AND LICENSE | ||
| 44 | |||
| 45 | Copyright (C) 2010 by Lyo Kato | ||
| 46 | |||
| 47 | This library is free software; you can redistribute it and/or modify | ||
| 48 | it under the same terms as Perl itself, either Perl version 5.8.8 or, | ||
| 49 | at your option, any later version of Perl 5 you may have available. | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | 1 | 1; | |