JOAP/Proxy/Server.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.7
CC
1
Cov
82%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« JOAP/Proxy/Package/Class.pm ↑ Summary JOAP/Proxy.pm »
1 # JOAP::Proxy::Server -- Class for Server Objects
2 #
3 # Copyright (c) 2003, Evan Prodromou <evan@prodromou.san-francisco.ca.us>
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  
19 # tag: JOAP server proxy object class
20  
21 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 package JOAP::Proxy::Server;
26 0 ▶use JOAP::Proxy;
Subroutine BEGIN: called CC=1 SCAR=2.6
27 use base qw/JOAP::Proxy/;
28  
29 our %EXPORT_TAGS = ( 'all' => [ qw// ] );
30 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
31 our @EXPORT = qw//;
32  
33 our $VERSION = $JOAP::VERSION;
34  
35 sub classes {
36  
37 my $self = shift;
38 return (@_) ? $self->{_classes} = shift : $self->{_classes};
39 }
40  
41 sub _describe {
42  
43 my $self = shift;
44 my $resp = $self->SUPER::_describe(@_);
45  
46 # Need to get the classes, too.
47  
48 my @classes = $resp->GetQuery->GetClass;
49 $self->classes(\@classes);
50  
51 # XXX: update addresses for classes in classmap
52  
53 return $resp;
54 }
55  
56 1;
57  
58 __END__
« JOAP/Proxy/Package/Class.pm ↑ Summary JOAP/Proxy.pm »