classafAtom::Link

sys::Obj
  afAtom::Link

Defines a reference from an entry or feed to a Web resource. Link is patterned after html’s link element.

@see The atom:link Element

href

Source

Uri href

(Required) The URI of the referenced resource (typically a Web page).

hreflang

Source

Str? hreflang

(Optional) Indicates the language of the referenced resource.

length

Source

Int? length

(Optional) The length of the resource, in bytes.

make

Source

new make(Uri href, Str rel := "alternate")

Creates a Link with the required fields.

rel

Source

Str rel

(Required) Contains the relationship type. It can be a full URI, or one of the following predefined values:

  • alternate: an alternate representation of the entry or feed, for example a permalink to the html version of the entry, or the front page of the weblog.
  • enclosure: a related resource which is potentially large in size and might require special handling, for example an audio or video recording.
  • related: an document related to the entry or feed.
  • self: the feed itself.
  • via: the source of the information provided in the entry.
title

Source

Str? title

(Optional) Human readable information about the link, typically for display purposes.

toXml

Source

virtual XElem toXml()

Creates a <link> element.

type

Source

MimeType? type

(Optional) Indicates the media type of the resource.