# Copyright (c) 2006 CentralNic Ltd. All rights reserved. This program is # free software; you can redistribute it and/or modify it under the same # terms as Perl itself. # # $Id: Response.pm,v 1.5 2006/05/02 16:04:52 gavin Exp $ package Net::EPP::Frame::Response; use base qw(Net::EPP::Frame); =pod =head1 NAME Net::EPP::Frame::Response - an instance of L for server responses =head1 DESCRIPTION This module is a subclass of L that represents EPP server responses. Responses are sent back to clients when the server receives a CcommandE> frame. =head1 OBJECT HIERARCHY L +----L +----L +----L =cut sub _addExtraElements { my $self = shift; $self->response->addChild($self->createElement('result')); $self->addChild($self->createElement('resData')); $self->result->setAttribute('code' => ''); my $trID = $self->createElement('trID'); $trID->addChild($self->createElement('clTRID')); $trID->addChild($self->createElement('svTRID')); $self->response->addChild($trID); return 1; } =pod =head1 METHODS my $node = $frame->response; This method returns the L object corresponding to the CcommandE> element. my $node = $frame->result; This method returns the L object corresponding to the CresultE> element. my $node = $frame->trID; This method returns the L object corresponding to the CtrIDE> element. my $node = $frame->clTRID; This method returns the L object corresponding to the CclTRIDE> element. my $node = $frame->svTRID; This method returns the L object corresponding to the CsvTRIDE> element. =cut sub response { $_[0]->getNode('response') } sub result { $_[0]->getNode('result') } sub trID { $_[0]->getNode('trID') } sub clTRID { $_[0]->getNode('clTRID') } sub svTRID { $_[0]->getNode('svTRID') } =pod =head1 AUTHOR Gavin Brown (L) for CentralNic Ltd (http://www.centralnic.com/). =head1 COPYRIGHT This module is (c) 2006 CentralNic Ltd. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 SEE ALSO =over =item * L =back =cut 1;