ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/URL/URL_base.pm
Revision: 1.6
Committed: Fri Dec 10 13:41:42 2004 UTC (20 years, 5 months ago) by sashby
Content type: text/plain
Branch: MAIN
CVS Tags: V1_0_4p1, V1_0_2, V1_0_2_p1, v102p1, V1_0_1, V1_0_0
Branch point for: v103_branch
Changes since 1.5: +0 -4 lines
Log Message:
Merged V1_0 branch to HEAD

File Contents

# User Rev Content
1 williamc 1.1 #
2     # standard url interface - dummy implementation
3     #
4     # Interface
5     # ---------
6     # new() : new object - calls init ->override init
7     # get(url, destination) : Override
8 williamc 1.3 # init() : Override
9 williamc 1.1
10 williamc 1.2 package URL::URL_base;
11 williamc 1.3 use URL::URLclass;
12 williamc 1.1 require 5.001;
13    
14     sub new {
15     my $class=shift;
16     $self={};
17     bless $self, $class;
18     $self->init();
19     return $self;
20     }
21    
22 williamc 1.4 sub error {
23     my $self=shift;
24    
25     if ( @_ ) {
26     $self->{errorstring}=$self->{errorstring}."\n".shift;
27     }
28     return (defined $self->{errorstring})?$self->{errorstring}:undef;
29     }
30    
31 williamc 1.1 # ----- Dummy interface routines
32     sub init {
33     # Dummy - override as reqd
34     }