java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.entities.Link

public class Link extends Object
Since:
10.0
  • Method Details

    • link

      public static Link link(URI uri, String rel)
      Creates a link using the specified uri and rel values
      Parameters:
      uri - the URI to use for the link URI,
      rel - the rel attribute of the link.
      Returns:
      a link
    • link

      public static Link link(URI uri, String rel, String type)
      Creates a link using the given URI builder to build the URI.
      Parameters:
      uri - the URI to use for the link URI,
      rel - the rel attribute of the link.
      type - the type attribute of the link.
      Returns:
      a link
    • self

      public static Link self(URI uri)
      Creates a link using the given URI builder to build the URI. The rel attribute of the link is set to self.
      Parameters:
      uri - the URI to use for the link URI.
      Returns:
      a link
    • edit

      public static Link edit(URI uri)
      Creates a link using the given URI builder to build the URI. The rel attribute of the link is set to edit.
      Parameters:
      uri - the URI to use for the link URI.
      Returns:
      a link
    • add

      public static Link add(URI uri)
      Creates a link using the given URI builder to build the URI. The rel attribute of the link is set to add.
      Parameters:
      uri - the URI to use for the link URI.
      Returns:
      a link
    • delete

      public static Link delete(URI uri)
      Creates a link using the given URI builder to build the URI. The rel attribute of the link is set to delete.
      Parameters:
      uri - the URI to use for the link URI.
      Returns:
      a link
    • getHref

      public URI getHref()
    • getRel

      public String getRel()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object