The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::RRP::Request::Add - rrp add request representation.

SYNOPSIS

 use Net::RRP::Request::Add;
 my $addRequest = new Net::RRP::Request::Add 
    ( entity  => new Net::RRP::Entity::Domain 
      ( DomainName => [ 'domain.ru' ],
        NameServer => [ 'ns1.domain.ru' ] ),
      options => { Period => 10 } );
 my $addRequest1 = new Net::RRP::Request::Add ();
 $addRequest1->setEntity ( new Net::RRP::Entity::Domain
                           ( DomainName => [ 'domain.ru' ],
                             NameServer => [ 'ns1.domain.ru' ] ) );
 $addRequest1->setOption ( Period => 10 );

DESCRIPTION

This is a rrp add request representation class.

getName

return a 'Add'

setEntity

throw Net::RRP::Exception::InvalidEntityValue exception unless entity is Net::RRP::Entity::Domain or Net::RRP::Entity::NameServer

setOption

Support for Registrar and Serial options. pass Period option. Throw Net::RRP::Exception::InvalidCommandOption exception at other options. Throw Net::RRP::Exception::InvalidOptionValue unless passed value is numeric.

AUTHOR AND COPYRIGHT

 Net::RRP::Request::Add (C) Michael Kulakov, Zenon N.S.P. 2000
                        125124, 19, 1-st Jamskogo polja st,
                        Moscow, Russian Federation

                        mkul@cpan.org

 All rights reserved.

 You may distribute this package under the terms of either the GNU
 General Public License or the Artistic License, as specified in the
 Perl README file.

SEE ALSO

Net::RRP::Request(3), Net::RRP::Codec(3), Net::RRP::Entity::Domain(3), Net::RRP::Entity::NameServer(3), RFC 2832, Net::RRP::Exception::InvalidEntityValue(3), Net::RRP::Exception::InvalidCommandOption(3), Net::RRP::Exception::InvalidOptionValue(3)