| 1 | package Net::RRP::Request::Reverse; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use Net::RRP::Request; | ||
| 5 | use Net::RRP::Exception::InvalidCommandOption; | ||
| 6 | use Net::RRP::Exception::InvalidEntityValue; | ||
| 7 | |||
| 8 | @Net::RRP::Request::Reverse::ISA = qw(Net::RRP::Request); | ||
| 9 | $Net::RRP::Request::Reverse::VERSION = '0.1'; | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Net::RRP::Request::Reverse - rrp reverse request representation. This command must reverse protocol for replication issues. | ||
| 14 | |||
| 15 | =head1 SYNOPSIS | ||
| 16 | |||
| 17 | use Net::RRP::Request::Reverse; | ||
| 18 | my $reverseRequest = new Net::RRP::Request::Reverse (); | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This is a rrp reverse request representation class. RRP rfc extension. | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | =head2 getName | ||
| 27 | |||
| 28 | return a 'Reverse' | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | sub getName { 'Reverse' }; | ||
| 33 | |||
| 34 | =head2 setEntity | ||
| 35 | |||
| 36 | throw Net::RRP::Exception::InvalidEntityValue immediate | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | sub setEntity | ||
| 41 | { | ||
| 42 | throw Net::RRP::Exception::InvalidEntityValue (); | ||
| 43 | } | ||
| 44 | |||
| 45 | =head2 setOption | ||
| 46 | |||
| 47 | throw Net::RRP::Exception::InvalidCommandOption () immediate | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | sub setOption | ||
| 52 | { | ||
| 53 | throw Net::RRP::Exception::InvalidCommandOption (); | ||
| 54 | } | ||
| 55 | |||
| 56 | =head1 AUTHOR AND COPYRIGHT | ||
| 57 | |||
| 58 | Net::RRP::Request::Reverse (C) Vladimir B. Grebenschikov | ||
| 59 | TSB "Russian Express" | ||
| 60 | vova@express.ru | ||
| 61 | |||
| 62 | All rights reserved. | ||
| 63 | |||
| 64 | You may distribute this package under the terms of either the GNU | ||
| 65 | General Public License or the Artistic License, as specified in the | ||
| 66 | Perl README file. | ||
| 67 | |||
| 68 | =head1 SEE ALSO | ||
| 69 | |||
| 70 | L<Net::RRP::Request(3)>, L<Net::RRP::Codec(3)>, RFC 2832, | ||
| 71 | L<Net::RRP::Exception::InvalidCommandOption(3)>, | ||
| 72 | L<Net::RRP::Exception::InvalidEntityValue(3)> | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | 1; | ||
| 77 | |||
| 78 | __END__ |