| 1 | package Net::ParseWhois::Domain::Registrar::Netsol; | ||
| 2 | |||
| 3 | require 5.004; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | @Net::ParseWhois::Domain::Registrar::Netsol::ISA = qw(Net::ParseWhois::Domain::Registrar); | ||
| 7 | $Net::ParseWhois::Domain::Registrar::Netsol::VERSION = 0.6; | ||
| 8 | |||
| 9 | sub rdebug { 0 } | ||
| 10 | sub regex_org_start { '^Registrant:'} | ||
| 11 | sub regex_no_match { '^No match for' } | ||
| 12 | sub regex_created { '^Record created on (.*)\.$' } | ||
| 13 | sub regex_expires { '^Record expires on (.*)\.$' } | ||
| 14 | # NetSol no longer gives last updated date for individual domains | ||
| 15 | sub regex_updated { '^Record last updated on (.*)\.$' } | ||
| 16 | sub regex_domain { '^Domain Name: (.*)$' } | ||
| 17 | sub regex_nameservers { '^Domain servers in listed order:$' } | ||
| 18 | # Billing contacts no longer given via WHOIS | ||
| 19 | sub my_contacts { [ qw(Administrative Technical) ] } | ||
| 20 | sub my_data { [ qw(my_contacts regex_org_start regex_no_match regex_created regex_updated regex_expires regex_domain regex_nameservers) ] } | ||
| 21 | |||
| 22 | sub parse_text { | ||
| 23 | my $self = shift; | ||
| 24 | my $text = shift; # array ref, one line per element | ||
| 25 | |||
| 26 | # Because NetSol doesn't give the last time a domain record was | ||
| 27 | # updated, we need to pre-fill that data value so the parse_contacts | ||
| 28 | # method won't screw-up. --jcm, 11/16/05 | ||
| 29 | $self->{RECORD_UPDATED}="n/a"; | ||
| 30 | |||
| 31 | $self->dump_text($text) if $self->rdebug; | ||
| 32 | |||
| 33 | $self->parse_start($text); | ||
| 34 | $self->dump_text($text) if $self->rdebug; | ||
| 35 | $self->parse_org($text); | ||
| 36 | $self->dump_text($text) if $self->rdebug; | ||
| 37 | $self->parse_domain_name($text); | ||
| 38 | $self->dump_text($text) if $self->rdebug; | ||
| 39 | $self->parse_contacts($text); | ||
| 40 | $self->dump_text($text) if $self->rdebug; | ||
| 41 | $self->parse_domain_stats($text); | ||
| 42 | $self->dump_text($text) if $self->rdebug; | ||
| 43 | $self->parse_nameservers($text); | ||
| 44 | $self->dump_text($text) if $self->rdebug; | ||
| 45 | |||
| 46 | return $self; | ||
| 47 | } | ||
| 48 | |||
| 49 | 1; |