line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Lucene::Client; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
20
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
98
|
|
4
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
80
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
13
|
use base qw( XML::Atom::Client ); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
3040
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use WebService::Lucene::Exception; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
WebService::Lucene::Client - XML::Atom::Client subclass |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
This is a simple L subclass with some extra logic |
17
|
|
|
|
|
|
|
to throw exceptions on failure. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 METHODS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head2 make_request( @options ) |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
overloaded method to throw a L on failure. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub make_request { |
28
|
|
|
|
|
|
|
my ( $self, @rest ) = @_; |
29
|
|
|
|
|
|
|
my $response = $self->SUPER::make_request( @rest ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
if ( !$response->is_success ) { |
32
|
|
|
|
|
|
|
WebService::Lucene::Exception->throw( $response ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
return $response; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHORS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=over 4 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item * Brian Cassidy Ebrian.cassidy@nald.caE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * Adam Paynter Eadam.paynter@nald.caE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=back |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Copyright 2006-2009 National Adult Literacy Database |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
53
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |