GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::EPP::Frame::ObjectSpec(3) User Contributed Perl Documentation Net::EPP::Frame::ObjectSpec(3)

Net::EPP::Frame::ObjectSpec - metadata about EPP objects and extensions.

        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 objects and extensions defined in EPP and various extensions.

    my $xmlns = Net::EPP::Frame::ObjectSpec->xmlns($type);

Returns a string containing the XML namespace URI of the thing identified by $type, or "undef" if $type is unknown.

See below for possible values of $type.

        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 returned array contains three members:

        @spec = (
                $type,
                $xmlns,
                $schemaLocation, # (deprecated)
        );

$type is the same as the supplied argument, while $xmlns is the XML namespace URI for the given type. The third argument is suitable for inclusion in a "schemaLocation" attribute, but is now deprecated and will be "undef" for any value of $type other than "domain", "host" "contact", "secDNS" and "rgp".

The $type argument to xmlns() and spec() identifies the object or extension desired. Possible values are:

  • "domain", for domain names;
  • "host", for host objects;
  • "contact", for contact objects;
  • "org", for organization object.

  • "secDNS", for the DNSSEC extension;
  • "rgp", for Registry Grace Period extension;
  • "ttl", for the TTL extension;
  • "maintenance", for the Maintenance extension;
  • "secure-authinfo-transfer", for the Secure authInfo extension;
  • "b-dn", for the bundled domain names extension;
  • "unhandled-namespaces", for the unhandled namespaces extension;
  • "loginSec", for the Login Security extension;
  • "fee", for the Fee extension;
  • "changePoll", for the Change Poll extension;
  • "orgext", for the Organization extension;
  • "allocationToken", for the Allocation Token extension;
  • "launch", for the Launch extension;
  • "keyrelay", for the Key Relay extension;
  • "ttl", for the TTL extension.

This module is (c) 2008 - 2023 CentralNic Ltd and 2024 Gavin Brown. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2025-04-15 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.