|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.Link
public class Link
Value object for links.
| Field Summary | |
|---|---|
static String |
ATOM_NAMESPACE
|
static String |
REL_FIRST
|
static String |
REL_LAST
|
static String |
REL_NEXT
|
static String |
REL_PREVIOUS
|
static String |
REL_SELF
|
| Constructor Summary | |
|---|---|
protected |
Link()
Empty constructor required by the marshalling framework. |
|
Link(String href)
Creates a new link to the given URI with the self rel. |
|
Link(String href,
String rel)
Creates a new Link to the given URI with the given rel. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getHref()
Returns the actual URI the link is pointing to. |
String |
getRel()
Returns the rel of the link. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATOM_NAMESPACE
public static final String REL_SELF
public static final String REL_FIRST
public static final String REL_PREVIOUS
public static final String REL_NEXT
public static final String REL_LAST
| Constructor Detail |
|---|
public Link(String href)
href - must not be null or empty.REL_SELF
public Link(String href,
String rel)
Link to the given URI with the given rel.
href - must not be null or empty.rel - must not be null or empty.protected Link()
| Method Detail |
|---|
public String getHref()
public String getRel()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||