line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Keeps track of which extensions are enabled for a session |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package SRS::EPP::Session::Extensions; |
4
|
|
|
|
|
|
|
{ |
5
|
|
|
|
|
|
|
$SRS::EPP::Session::Extensions::VERSION = '0.22'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
2451
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
9
|
1
|
|
|
1
|
|
8238
|
use XML::EPP; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has 'enabled' => |
12
|
|
|
|
|
|
|
is => "rw", |
13
|
|
|
|
|
|
|
isa => "HashRef", |
14
|
|
|
|
|
|
|
default => sub { {} }, |
15
|
|
|
|
|
|
|
; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub set { |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
my @extensions = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
foreach my $ext_uri (@extensions) { |
22
|
|
|
|
|
|
|
my $alias = $XML::EPP::ext_with_aliases{$ext_uri}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$self->enabled->{$alias} = 1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |