NAME
Net::RDAP::Link - a module representing an RDAP link.
DESCRIPTION
Links are used throughout RDAP; the following objects may contain zero or more links:
objects (see Net::RDAP::Object)
remarks (see Net::RDAP::Remark)
notices (see Net::RDAP::Notice)
events (see Net::RDAP::Event)
In all cases, the modules representing these types of object inherit from Net::RDAP::Base and therefore provide a links()
method which will return a (potentially empty) array of Net::RDAP::Link objects.
METHODS
Value
$value = $link->value;
Returns the "value" of the link. This corresponds to the text content of the <a>
element if the link if it were represented in HTML.
Relationship
$rel = $link->rel;
Returns the "relationship" attribute. The possible values are defined by an IANA registry; see:
URL
$url = $link->href;
Returns a URI object corresponding to the target of the link.
Language
@languages = $link->hreflang;
Returns a (potentially empty) array containing the ISO-639-2 codes which describe the language that the target is available in.
Title
$title = $link->title;
Returns the "title" attribute of the link. This corresponds to the mousover tooltip content of the <a>
element if the link if it were represented in HTML.
Media
$media = $link->media;
Returns the "media" attribute of the link. This corresponds to the media/device the target resource is optimized for.
Media Type
$type = $link->type;
Returns a MIME::Type object corresponding to the media type of the target resource.
COPYRIGHT
Copyright CentralNic Ltd. All rights reserved.
LICENSE
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.