|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.ResourceSupport
public class ResourceSupport
Base class for DTOs to collect links.
| Constructor Summary | |
|---|---|
ResourceSupport()
|
|
| Method Summary | |
|---|---|
void |
add(Iterable<Link> links)
Adds all given Links to the resource. |
void |
add(Link link)
Adds the given link to the resource. |
boolean |
equals(Object obj)
|
Link |
getId()
Returns the Link with a rel of Link.REL_SELF. |
Link |
getLink(String rel)
Returns the link with the given rel. |
List<Link> |
getLinks()
Returns all Links contained in this resource. |
int |
hashCode()
|
boolean |
hasLink(String rel)
Returns whether the resource contains a Link with the given rel. |
boolean |
hasLinks()
Returns whether the resource contains Links at all. |
void |
removeLinks()
Removes all Links added to the resource so far. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceSupport()
| Method Detail |
|---|
public Link getId()
Link with a rel of Link.REL_SELF.
getId in interface Identifiable<Link>public void add(Link link)
link - public void add(Iterable<Link> links)
Links to the resource.
links - public boolean hasLinks()
Links at all.
public boolean hasLink(String rel)
Link with the given rel.
rel -
public List<Link> getLinks()
Links contained in this resource.
public void removeLinks()
Links added to the resource so far.
public Link getLink(String rel)
rel -
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||