line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Power::Outlet::Common::IP::HTTPS; |
2
|
1
|
|
|
1
|
|
1284
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
3
|
1
|
|
|
1
|
|
13
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
use base qw{Power::Outlet::Common::IP::HTTP}; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
157
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.47'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Power::Outlet::Common::IP::HTTPS - Power::Outlet base class for HTTPS power outlet |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use base qw{Power::Outlet::Common::IP::HTTPS}; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Power::Outlet::Common::IP::HTTPS is a package for controlling and querying an HTTPS-based network attached power outlet. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 USAGE |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use base qw{Power::Outlet::Common::IP::HTTPS}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 METHODS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 url |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Returns a configured L object |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 PROPERTIES |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
All properties from Power::Outlet::Common::IP::HTTP with these default differences |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 http_scheme |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Set and returns the http_scheme property |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Default: https |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
|
|
sub _http_scheme_default {'https'}; #see Power::Outlet::Common::IP::HTTP |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 port |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Set and returns the port property |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Default: 443 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
0
|
|
|
0
|
|
|
sub _port_default {'443'}; #see Power::Outlet::Common::IP |
53
|
|
|
|
|
|
|
|
54
|
0
|
|
|
0
|
|
|
sub _http_path_default {'/'}; #see Power::Outlet::Common::IP::HTTP |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 BUGS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Please log on RT and send an email to the author. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SUPPORT |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
DavisNetworks.com supports all Perl applications including this package. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 AUTHOR |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Michael R. Davis |
67
|
|
|
|
|
|
|
CPAN ID: MRDVT |
68
|
|
|
|
|
|
|
DavisNetworks.com |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
The full text of the license can be found in the LICENSE file included with this module. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SEE ALSO |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
L, L |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |