| Package | Description |
|---|---|
| org.springframework.hateoas |
Value objects to ease creating
Links and link driven representations for REST
webservices. |
| org.springframework.hateoas.server |
Server-side components for hypermedia handling.
|
| org.springframework.hateoas.server.reactive |
Spring WebFlux components to build
Links and assemble
RepresentationModel types. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends EntityModel<S>,S> |
CollectionModel.wrap(Iterable<S> content)
Creates a new
CollectionModel instance by wrapping the given domain class instances into a
EntityModel. |
static <T extends EntityModel<S>,S> |
PagedModel.wrap(Iterable<S> content,
PagedModel.PageMetadata metadata)
Factory method to easily create a
PagedModel instance from a set of entities and pagination metadata. |
| Modifier and Type | Method and Description |
|---|---|
static <T> EntityModel<T> |
EntityModel.of(T content)
Creates a new
EntityModel with the given content. |
static <T> EntityModel<T> |
EntityModel.of(T content,
Iterable<Link> links)
Creates a new
EntityModel with the given content and Links. |
static <T> EntityModel<T> |
EntityModel.of(T content,
Link... links)
Creates a new
EntityModel with the given content and Links (optional). |
| Modifier and Type | Method and Description |
|---|---|
default EntityModel<T> |
SimpleRepresentationModelAssembler.toModel(T entity)
Converts the given entity into a
EntityModel. |
| Modifier and Type | Method and Description |
|---|---|
default CollectionModel<EntityModel<T>> |
SimpleRepresentationModelAssembler.toCollectionModel(Iterable<? extends T> entities)
Converts all given entities into resources and wraps the collection as a resource as well.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleRepresentationModelAssembler.addLinks(EntityModel<T> resource)
Define links to add to every individual
EntityModel. |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources)
Define links to add to the
CollectionModel collection. |
| Modifier and Type | Method and Description |
|---|---|
default EntityModel<T> |
SimpleReactiveRepresentationModelAssembler.addLinks(EntityModel<T> resource,
ServerWebExchange exchange)
Define links to add to every individual
EntityModel. |
| Modifier and Type | Method and Description |
|---|---|
default CollectionModel<EntityModel<T>> |
SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources,
ServerWebExchange exchange)
Define links to add to the
CollectionModel collection. |
default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>> |
SimpleReactiveRepresentationModelAssembler.toCollectionModel(reactor.core.publisher.Flux<? extends T> entities,
ServerWebExchange exchange)
Converts all given entities into resources and wraps the collection as a resource as well.
|
default reactor.core.publisher.Mono<EntityModel<T>> |
SimpleReactiveRepresentationModelAssembler.toModel(T entity,
ServerWebExchange exchange)
Converts the given entity into a
EntityModel wrapped in a Mono. |
| Modifier and Type | Method and Description |
|---|---|
default EntityModel<T> |
SimpleReactiveRepresentationModelAssembler.addLinks(EntityModel<T> resource,
ServerWebExchange exchange)
Define links to add to every individual
EntityModel. |
| Modifier and Type | Method and Description |
|---|---|
default CollectionModel<EntityModel<T>> |
SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources,
ServerWebExchange exchange)
Define links to add to the
CollectionModel collection. |
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.