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.mediatype.collectionjson | |
org.springframework.hateoas.mediatype.hal |
HAL-specific extensions, SPIs and Jackson customizations.
|
org.springframework.hateoas.mediatype.hal.forms | |
org.springframework.hateoas.mediatype.uber | |
org.springframework.hateoas.mediatype.vnderrors | |
org.springframework.hateoas.server | |
org.springframework.hateoas.server.core |
Implementations of core API interfaces.
|
org.springframework.hateoas.server.reactive |
Modifier and Type | Method and Description |
---|---|
Link |
Link.andAffordance(Affordance affordance)
Create new
Link with an additional Affordance . |
Link |
Link.andAffordance(org.springframework.http.HttpMethod httpMethod,
Class<?> inputType,
List<QueryParameter> queryMethodParameters,
Class<?> outputType)
Convenience method when chaining an existing
Link . |
Link |
Link.andAffordance(org.springframework.http.HttpMethod httpMethod,
org.springframework.core.ResolvableType inputType,
List<QueryParameter> queryMethodParameters,
org.springframework.core.ResolvableType outputType)
Convenience method when chaining an existing
Link . |
Link |
Link.andAffordance(String name,
org.springframework.http.HttpMethod httpMethod,
org.springframework.core.ResolvableType inputType,
List<QueryParameter> queryMethodParameters,
org.springframework.core.ResolvableType outputType)
Convenience method when chaining an existing
Link . |
Link |
Link.andAffordances(List<Affordance> affordances)
Create new
Link with additional Affordance s. |
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 |
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 Affordance s. |
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
Link s with the given relation. |
List<Link> |
RepresentationModel.getLinks(String relation)
Returns all
Link s 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
Link s 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)
|
AffordanceModel |
AffordanceModelFactory.getAffordanceModel(String name,
Link link,
org.springframework.http.HttpMethod httpMethod,
org.springframework.core.ResolvableType inputType,
List<QueryParameter> queryMethodParameters,
org.springframework.core.ResolvableType outputType)
Look up the
AffordanceModel for this factory. |
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
Link s to the resource. |
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 |
---|
Affordance(String name,
Link link,
org.springframework.http.HttpMethod httpMethod,
org.springframework.core.ResolvableType inputType,
List<QueryParameter> queryMethodParameters,
org.springframework.core.ResolvableType outputType)
Creates a new
Affordance . |
CollectionModel(Iterable<T> content,
Link... links)
Creates a
CollectionModel instance with the given content and Link s (optional). |
EntityModel(T content,
Link... links)
Creates a new
EntityModel with the given content and Link s (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 Link s. |
EntityModel(T content,
Iterable<Link> links)
Creates a new
EntityModel with the given content and Link s. |
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 rel 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> |
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,
InputStream representation) |
Optional<Link> |
LinkDiscoverer.findLinkWithRel(LinkRelation rel,
String representation)
Finds a single link with the given
LinkRelation in the given String representation. |
Optional<Link> |
JsonPathLinkDiscoverer.findLinkWithRel(LinkRelation relation,
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 |
---|---|
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 |
DefaultCurieProvider.getNamespacedRelFrom(Link link) |
HalLinkRelation |
CurieProvider.getNamespacedRelFrom(Link link)
Returns the rel to be rendered for the given
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 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. |
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 |
DelegatingEntityLinks.linkToCollectionResource(Class<?> type) |
Link |
ControllerEntityLinks.linkToCollectionResource(Class<?> entity) |
Link |
DelegatingEntityLinks.linkToItemResource(Class<?> type,
Object id) |
Link |
ControllerEntityLinks.linkToItemResource(Class<?> entity,
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.