Package | Description |
---|---|
org.springframework.hateoas |
Value objects to ease creating
Link s and link driven representations for REST webservices. |
org.springframework.hateoas.client |
Client side support.
|
org.springframework.hateoas.core |
Implementations of core API interfaces.
|
org.springframework.hateoas.hal |
HAL-specific extensions, SPIs and Jackson customizations.
|
Modifier and Type | Method and Description |
---|---|
Link |
Link.expand(Map<String,? extends Object> arguments)
Turns the current template into a
Link by expanding it using the given parameters. |
Link |
Link.expand(Object... arguments)
Turns the current template into a
Link by expanding it using the given parameters. |
Link |
LinkDiscoverer.findLinkWithRel(String rel,
InputStream representation)
Finds a single link with the given relation type in the given
InputStream representation. |
Link |
LinkDiscoverer.findLinkWithRel(String rel,
String representation)
Finds a single link with the given relation type in the given
String representation. |
Link |
ResourceSupport.getId()
|
Link |
ResourceSupport.getLink(String rel)
Returns the link with the given rel.
|
Link |
Links.getLink(String rel)
Returns the
Link with the given rel. |
Link |
PagedResources.getNextLink()
Returns the Link pointing to the next page (if set).
|
Link |
PagedResources.getPreviousLink()
Returns the Link pointing to the previous page (if set).
|
Link |
EntityLinks.linkToCollectionResource(Class<?> type)
Creates a
Link pointing to the collection resource of the given type. |
Link |
EntityLinks.linkToSingleResource(Class<?> type,
Object id)
Creates a
Link pointing to single resource backing the given entity type and id. |
Link |
EntityLinks.linkToSingleResource(Identifiable<?> entity)
Creates a
Link pointing to single resource backing the given entity. |
static Link |
Link.valueOf(String element)
|
Link |
LinkBuilder.withRel(String rel)
Creates the
Link built by the current builder instance with the given rel. |
Link |
LinkBuilder.withSelfRel()
Creates the
Link built by the current builder instance with the default self rel. |
Link |
Link.withSelfRel()
Returns a
Link pointing to the same URI but with the self relation. |
Modifier and Type | Method and Description |
---|---|
List<Link> |
LinkDiscoverer.findLinksWithRel(String rel,
InputStream representation)
Returns all links with the given relation type found in the given
InputStream representation. |
List<Link> |
LinkDiscoverer.findLinksWithRel(String rel,
String representation)
Returns all links with the given relation type found in the given
String representation. |
List<Link> |
ResourceSupport.getLinks()
Returns all
Link s contained in this resource. |
List<Link> |
ResourceSupport.getLinks(String rel)
Returns all
Link s with the given relation type. |
List<Link> |
Links.getLinks(String rel)
Returns all
Links with the given relation type. |
Iterator<Link> |
Links.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
ResourceSupport.add(Link... links)
Adds all given
Link s to the resource. |
void |
ResourceSupport.add(Link link)
Adds the given link to the resource.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceSupport.add(Iterable<Link> links)
Adds all given
Link s to the resource. |
Constructor and Description |
---|
Links(Link... links)
|
PagedResources(Collection<T> content,
PagedResources.PageMetadata metadata,
Link... links)
Creates a new
PagedResources from the given content, PagedResources.PageMetadata and Link s (optional). |
Resource(T content,
Link... links)
|
Resources(Iterable<T> content,
Link... links)
|
VndError(String logref,
String message,
Link... links)
Creates a new
VndErrors.VndError with the given logref, a message as well as some Link s. |
VndErrors(String logref,
String message,
Link... links)
Creates a new
VndErrors instance containing a single VndErrors.VndError with the given logref, message and
optional Link s. |
Constructor and Description |
---|
Links(List<Link> links)
|
PagedResources(Collection<T> content,
PagedResources.PageMetadata metadata,
Iterable<Link> links)
|
Resource(T content,
Iterable<Link> links)
|
Resources(Iterable<T> content,
Iterable<Link> links)
|
Modifier and Type | Method and Description |
---|---|
Link |
Traverson.TraversalBuilder.asLink()
Returns the
Link found for the last rel in the rels configured to follow. |
Link |
Traverson.TraversalBuilder.asTemplatedLink()
Returns the templated
Link found for the last rel in the rels configured to follow. |
Modifier and Type | Method and Description |
---|---|
Link |
JsonPathLinkDiscoverer.findLinkWithRel(String rel,
InputStream representation) |
Link |
JsonPathLinkDiscoverer.findLinkWithRel(String rel,
String representation) |
Link |
DelegatingEntityLinks.linkToCollectionResource(Class<?> type) |
Link |
ControllerEntityLinks.linkToCollectionResource(Class<?> entity) |
Link |
DelegatingEntityLinks.linkToSingleResource(Class<?> type,
Object id) |
Link |
ControllerEntityLinks.linkToSingleResource(Class<?> entity,
Object id) |
Link |
AbstractEntityLinks.linkToSingleResource(Identifiable<?> entity) |
Link |
LinkBuilderSupport.withRel(String rel) |
Link |
LinkBuilderSupport.withSelfRel() |
Modifier and Type | Method and Description |
---|---|
List<Link> |
JsonPathLinkDiscoverer.findLinksWithRel(String rel,
InputStream representation) |
List<Link> |
JsonPathLinkDiscoverer.findLinksWithRel(String rel,
String representation) |
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultCurieProvider.Curie
Value object to get the curie
Link rendered in JSON. |
Modifier and Type | Method and Description |
---|---|
List<Link> |
Jackson2HalModule.HalLinkListDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
String |
DefaultCurieProvider.getNamespacedRelFrom(Link link) |
String |
CurieProvider.getNamespacedRelFrom(Link link)
Returns the rel to be rendered for the given
Link . |
Modifier and Type | Method and Description |
---|---|
boolean |
Jackson2HalModule.HalLinkListSerializer.hasSingleElement(List<Link> value) |
boolean |
Jackson2HalModule.HalLinkListSerializer.isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider,
List<Link> value) |
void |
Jackson2HalModule.HalLinkListSerializer.serialize(List<Link> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.