| Package | Description |
|---|---|
| org.springframework.hateoas |
Value objects to ease creating
Links and link driven representations for REST
webservices. |
| org.springframework.hateoas.client |
Client side support.
|
| org.springframework.hateoas.mediatype |
Spring container configuration support.
|
| org.springframework.hateoas.mediatype.collectionjson |
Value objects to build Collection+JSON representations.
|
| org.springframework.hateoas.mediatype.hal |
HAL-specific extensions, SPIs and Jackson customizations.
|
| org.springframework.hateoas.mediatype.hal.forms |
HAL-FORMS extension media type.
|
| org.springframework.hateoas.mediatype.uber |
UBER media type objects.
|
| org.springframework.hateoas.mediatype.vnderrors |
Vnd.Error media type.
|
| org.springframework.hateoas.server |
Server-side components for hypermedia handling.
|
| org.springframework.hateoas.server.core |
Implementations of core API interfaces.
|
| org.springframework.hateoas.server.reactive |
Spring WebFlux components to build
Links and assemble
RepresentationModel types. |
| Modifier and Type | Method and Description |
|---|---|
Link |
Link.andAffordance(Affordance affordance)
Create new
Link with an additional Affordance. |
Link |
Link.andAffordances(List<Affordance> affordances)
Create new
Link with additional Affordances. |
Link |
Link.expand(Map<String,?> 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 |
RepresentationModel.getRequiredLink(LinkRelation relation)
Returns the link with the given relation.
|
Link |
Links.getRequiredLink(LinkRelation relation)
Returns the
Link with the given relation. |
Link |
RepresentationModel.getRequiredLink(String relation)
Returns the link with the given relation.
|
Link |
Links.getRequiredLink(String rel)
Returns the
Link with the given relation. |
static Link |
Link.valueOf(String element)
|
Link |
Link.withAffordances(List<Affordance> affordances)
Creats a new
Link with the given Affordances. |
Link |
Link.withRel(LinkRelation relation)
Creates a new
Link with the same href but given LinkRelation. |
Link |
Link.withRel(String relation)
Creates a new
Link with the same href but given LinkRelation. |
Link |
Link.withSelfRel()
Returns a
Link pointing to the same URI but with the self relation. |
| Modifier and Type | Method and Description |
|---|---|
static Collector<Link,?,Links> |
Links.collector()
|
Optional<Link> |
RepresentationModel.getLink(LinkRelation relation)
Returns the link with the given
LinkRelation. |
Optional<Link> |
Links.getLink(LinkRelation rel)
Returns the
Link with the given rel. |
Optional<Link> |
RepresentationModel.getLink(String relation)
Returns the link with the given relation.
|
Optional<Link> |
Links.getLink(String relation)
Returns a
Link with the given relation if contained in the current Links instance,
Optional.empty() otherwise. |
List<Link> |
RepresentationModel.getLinks(LinkRelation relation)
Returns all
Links with the given relation. |
List<Link> |
RepresentationModel.getLinks(String relation)
Returns all
Links with the given relation. |
Optional<Link> |
PagedModel.getNextLink()
Returns the Link pointing to the next page (if set).
|
Optional<Link> |
PagedModel.getPreviousLink()
Returns the Link pointing to the previous page (if set).
|
Iterator<Link> |
Links.iterator() |
Stream<Link> |
Links.stream()
|
List<Link> |
Links.toList()
|
| Modifier and Type | Method and Description |
|---|---|
T |
RepresentationModel.add(Link... links)
Adds all given
Links to the resource. |
T |
RepresentationModel.add(Link link)
Adds the given link to the resource.
|
Links |
Links.and(Link... links)
|
boolean |
Links.contains(Link... links)
|
Links |
Links.merge(Link... links)
|
Links |
Links.merge(Links.MergeMode mode,
Link... links)
Merges the current
Links with the given ones applying the given Links.MergeMode. |
static Links |
Links.of(Link... links)
|
boolean |
AffordanceModel.pointsToTargetOf(Link link)
Returns whether the
Affordance points to the target of the given Link. |
| Modifier and Type | Method and Description |
|---|---|
T |
RepresentationModel.add(Iterable<Link> links)
Adds all given
Links to the resource. |
T |
RepresentationModel.addAllIf(boolean guard,
Supplier<? extends Iterable<Link>> links)
Adds all
Links produced by the given Supplier if the guard is true. |
T |
RepresentationModel.addIf(boolean guard,
Supplier<Link> link)
Adds the
Link produced by the given Supplier if the guard is true. |
Links |
Links.and(Iterable<Link> links)
|
boolean |
Links.contains(Iterable<Link> links)
|
boolean |
Links.containsSameLinksAs(Iterable<Link> links)
|
Links |
Links.merge(Iterable<Link> links)
|
Links |
Links.merge(Links.MergeMode mode,
Iterable<Link> links)
Merges the current
Links with the given ones applying the given Links.MergeMode. |
static Links |
Links.of(Iterable<Link> links)
|
| Constructor and Description |
|---|
CollectionModel(Iterable<T> content,
Link... links)
Creates a
CollectionModel instance with the given content and Links (optional). |
EntityModel(T content,
Link... links)
Creates a new
EntityModel with the given content and Links (optional). |
PagedModel(Collection<T> content,
PagedModel.PageMetadata metadata,
Link... links)
|
RepresentationModel(Link initialLink) |
| Constructor and Description |
|---|
CollectionModel(Iterable<T> content,
Iterable<Link> links)
Creates a
CollectionModel instance with the given content and Links. |
EntityModel(T content,
Iterable<Link> links)
Creates a new
EntityModel with the given content and Links. |
PagedModel(Collection<T> content,
PagedModel.PageMetadata metadata,
Iterable<Link> links)
|
RepresentationModel(List<Link> initialLinks) |
| 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 relation in the rels configured to follow. |
protected Link |
JsonPathLinkDiscoverer.extractLink(Object element,
LinkRelation rel)
Callback for each
LinkDiscoverer to extract relevant attributes and generate a Link. |
default Link |
LinkDiscoverer.findRequiredLinkWithRel(LinkRelation relation,
InputStream representation)
Finds a single link with the given relation type in the given
InputStream representation. |
default Link |
LinkDiscoverer.findRequiredLinkWithRel(LinkRelation relation,
String representation)
Finds a single link with the given relation in the given
String representation. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Link> |
JsonPathLinkDiscoverer.findLinkWithRel(LinkRelation relation,
InputStream representation) |
Optional<Link> |
LinkDiscoverer.findLinkWithRel(LinkRelation relation,
InputStream representation)
Finds a single link with the given
LinkRelation in the given InputStream representation. |
Optional<Link> |
JsonPathLinkDiscoverer.findLinkWithRel(LinkRelation relation,
String representation) |
Optional<Link> |
LinkDiscoverer.findLinkWithRel(LinkRelation rel,
String representation)
Finds a single link with the given
LinkRelation in the given String representation. |
default Optional<Link> |
LinkDiscoverer.findLinkWithRel(String relation,
InputStream representation)
Finds a single link with the given relation type in the given
InputStream representation. |
default Optional<Link> |
LinkDiscoverer.findLinkWithRel(String rel,
String representation)
Finds a single link with the given relation type in the given
String representation. |
| Modifier and Type | Method and Description |
|---|---|
Link |
Affordances.toLink() |
Link |
Affordances.AffordanceBuilder.toLink() |
Link |
AffordanceOperations.toLink()
Returns a
Link equipped with the Affordance currently under construction. |
| Modifier and Type | Method and Description |
|---|---|
AffordanceModel |
AffordanceModelFactory.getAffordanceModel(String name,
Link link,
HttpMethod httpMethod,
AffordanceModel.InputPayloadMetadata inputType,
List<QueryParameter> queryMethodParameters,
AffordanceModel.PayloadMetadata outputType)
Look up the
AffordanceModel for this factory. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Link> |
CollectionJsonLinkDiscoverer.findLinkWithRel(LinkRelation relation,
InputStream representation) |
Optional<Link> |
CollectionJsonLinkDiscoverer.findLinkWithRel(LinkRelation relation,
String representation) |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultCurieProvider.Curie
Value object to get the curie
Link rendered in JSON. |
class |
LinkMixin
Custom mixin to avoid rel attributes being rendered for HAL.
|
| Modifier and Type | Method and Description |
|---|---|
protected Link |
HalLinkDiscoverer.extractLink(Object element,
LinkRelation rel) |
| 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 |
|---|---|
HalLinkRelation |
CurieProvider.getNamespacedRelFrom(Link link)
Returns the rel to be rendered for the given
Link. |
HalLinkRelation |
DefaultCurieProvider.getNamespacedRelFrom(Link link) |
| Modifier and Type | Method and Description |
|---|---|
HalFormsDocument<T> |
HalFormsDocument.andLink(Link link)
Adds the given
Link to the current document. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Link> |
UberLinkDiscoverer.findLinkWithRel(LinkRelation rel,
InputStream representation) |
Optional<Link> |
UberLinkDiscoverer.findLinkWithRel(LinkRelation rel,
String representation) |
| Constructor and Description |
|---|
VndError(String logref,
String message,
Link... links)
Creates a new
VndErrors.VndError with the given logref, a message as well as some Links. |
VndErrors(String logref,
String message,
Link... links)
Creates a new
VndErrors instance containing a single VndErrors.VndError with the given logref, message and
optional Links. |
| Modifier and Type | Method and Description |
|---|---|
Link |
TypedEntityLinks.ExtendedTypedEntityLinks.linkToCollectionResource()
Creates a
Link pointing to the collection resource of the configured type. |
Link |
EntityLinks.linkToCollectionResource(Class<?> type)
Creates a
Link pointing to the collection resource of the given type. |
Link |
EntityLinks.linkToItemResource(Class<?> type,
Object id)
Creates a
Link pointing to item resource backing the given entity type and id. |
Link |
TypedEntityLinks.linkToItemResource(T entity)
Creates a
Link pointing to item resource backing the given entity. |
default <T> Link |
EntityLinks.linkToItemResource(T entity,
Function<T,Object> identifierExtractor)
Creates a
Link pointing to item resource backing the given entity and identifier extractor. |
Link |
LinkBuilder.withRel(LinkRelation rel)
Creates the
Link built by the current builder instance with the given LinkRelation. |
default Link |
LinkBuilder.withRel(String rel)
Creates the
Link built by the current builder instance with the given link relation. |
Link |
LinkBuilder.withSelfRel()
Creates the
Link built by the current builder instance with the default self link relation. |
| Modifier and Type | Method and Description |
|---|---|
Link |
ControllerEntityLinks.linkToCollectionResource(Class<?> entity) |
Link |
DelegatingEntityLinks.linkToCollectionResource(Class<?> type) |
Link |
ControllerEntityLinks.linkToItemResource(Class<?> entity,
Object id) |
Link |
DelegatingEntityLinks.linkToItemResource(Class<?> type,
Object id) |
Link |
LinkBuilderSupport.withRel(LinkRelation rel) |
Link |
LinkBuilderSupport.withSelfRel() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Link> |
WebFluxLinkBuilder.WebFluxLink.toMono()
Returns the underlying
Mono of Link for further handling within a reactive pipeline. |
reactor.core.publisher.Mono<Link> |
WebFluxLinkBuilder.WebFluxLink.toMono(Function<Link,Link> finisher)
|
| Modifier and Type | Method and Description |
|---|---|
WebFluxLinkBuilder.WebFluxLink |
WebFluxLinkBuilder.WebFluxLink.map(Function<Link,Link> mapper)
Creates a new
WebFluxLinkBuilder.WebFluxLink with the current Link instance transformed using the given mapper. |
WebFluxLinkBuilder.WebFluxLink |
WebFluxLinkBuilder.WebFluxLink.map(Function<Link,Link> mapper)
Creates a new
WebFluxLinkBuilder.WebFluxLink with the current Link instance transformed using the given mapper. |
WebFluxLinkBuilder.WebFluxLink |
WebFluxLinkBuilder.WebFluxBuilder.toLink(Function<WebFluxLinkBuilder,reactor.core.publisher.Mono<Link>> finisher)
General callback to produce a
Link from the given WebFluxLinkBuilder. |
reactor.core.publisher.Mono<Link> |
WebFluxLinkBuilder.WebFluxLink.toMono(Function<Link,Link> finisher)
|
reactor.core.publisher.Mono<Link> |
WebFluxLinkBuilder.WebFluxLink.toMono(Function<Link,Link> finisher)
|
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.