line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# JOAP::Proxy::Server -- Class for Server Objects |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Copyright (c) 2003, Evan Prodromou |
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
|
|
|
1
|
|
2580
|
use 5.008; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
42
|
|
22
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
23
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
package JOAP::Proxy::Server; |
26
|
1
|
|
|
1
|
|
51
|
use JOAP::Proxy; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
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__ |