com.atlassian.plugins.rest.common
Class Link

java.lang.Object
  extended by com.atlassian.plugins.rest.common.Link

public class Link
extends java.lang.Object

Represents a link to a given entity. The href

Since:
1.0

Method Summary
static Link add(java.net.URI uri)
          Creates a link using the given URI builder to build the URI.
static Link delete(java.net.URI uri)
          Creates a link using the given URI builder to build the URI.
static Link edit(java.net.URI uri)
          Creates a link using the given URI builder to build the URI.
 boolean equals(java.lang.Object obj)
           
 java.net.URI getHref()
           
 java.lang.String getRel()
           
 int hashCode()
           
static Link link(java.net.URI uri, java.lang.String rel)
          Creates a link using the specified uri and rel values
static Link link(java.net.URI uri, java.lang.String rel, java.lang.String type)
          Creates a link using the given URI builder to build the URI.
static Link self(java.net.URI uri)
          Creates a link using the given URI builder to build the URI.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

link

public static Link link(java.net.URI uri,
                        java.lang.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(java.net.URI uri,
                        java.lang.String rel,
                        java.lang.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(java.net.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(java.net.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(java.net.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(java.net.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 java.net.URI getHref()

getRel

public java.lang.String getRel()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2014 Atlassian. All Rights Reserved.