Package | Description |
---|---|
org.springframework.hateoas |
Value objects to ease creating
Link s and link driven representations for REST webservices. |
org.springframework.hateoas.server | |
org.springframework.hateoas.server.reactive |
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 |
---|---|
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,
org.springframework.web.server.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,
org.springframework.web.server.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,
org.springframework.web.server.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,
org.springframework.web.server.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,
org.springframework.web.server.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,
org.springframework.web.server.ServerWebExchange exchange)
Define links to add to the
CollectionModel collection. |
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.