Net::EPP::Frame::ObjectSpec(3pm) | User Contributed Perl Documentation | Net::EPP::Frame::ObjectSpec(3pm) |
Net::EPP::Frame::ObjectSpec - metadata about EPP object types
use Net::EPP::Frame; use strict; # create an EPP frame: my $check = Net::EPP::Frame::Command::Check->new; # get the spec: my @spec = Net::EPP::Frame::ObjectSpec->spec('domain'); # create an object: my $domain = $check->addObject(@spec); # set the attributes: my $name = $check->createElement('domain:name'); $name->addText('example.tld'); # assemble the frame: $domain->appendChild($name); $check->getCommandNode->appendChild($domain); print $check->toString;
Net::EPP::Frame::ObjectSpec is a simple module designed to provide easy access to metadata for the object types defined in the EPP specification.
my @spec = Net::EPP::Frame::ObjectSpec->spec($type);
This function returns an array containing metadata for the given object type. If no metadata is registered then the function returns undef.
The array contains three members:
@spec = ( $type, $xmlns, $schemaLocation, );
$type is the same as the supplied argument, and the other two members correspond to the XML attributes used to specify the object in an EPP "<command>" or "<response>" frame.
The objects currently registered are:
Note that "secDNS" and "rgp" refer to extensions to the domain object rather than objects in their own right.
2023-11-01 | perl v5.36.0 |