Class Link


  • @ExportedBean(defaultVisibility=99999)
    public final class Link
    extends Object
    Link holding reference to a resource.
    Author:
    Vivek Pandey
    See Also:
    Links
    • Constructor Detail

      • Link

        public Link​(String href)
    • Method Detail

      • getHref

        @Exported(name="href")
        public String getHref()
      • rel

        public Link rel​(String name)
        Resolves a relative reference.
      • ancestor

        public Link ancestor()
        Gives ancestor Link, for example, for link("/a/b/c/d"), ancestor is "a/b/c/".
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object