Uses of Class
org.springframework.hateoas.EntityModel
Packages that use EntityModel
Package
Description
Value objects to ease creating
Link
s and link driven representations for REST
webservices.Server-side components for hypermedia handling.
Spring WebFlux components to build
Link
s and assemble
RepresentationModel
types.-
Uses of EntityModel in org.springframework.hateoas
Methods in org.springframework.hateoas with type parameters of type EntityModelModifier and TypeMethodDescriptionstatic <T extends EntityModel<S>,
S>
CollectionModel<T>Creates a newCollectionModel
instance by wrapping the given domain class instances into aEntityModel
.static <T extends EntityModel<S>,
S>
PagedModel<T>PagedModel.wrap
(Iterable<S> content, PagedModel.PageMetadata metadata) Factory method to easily create aPagedModel
instance from a set of entities and pagination metadata.static <T extends EntityModel<S>,
S>
SlicedModel<T>SlicedModel.wrap
(Iterable<S> content, SlicedModel.SliceMetadata metadata) Factory method to easily create aSlicedModel
instance from a set of entities and pagination metadata.Methods in org.springframework.hateoas that return EntityModelModifier and TypeMethodDescriptionstatic <T> EntityModel<T>
EntityModel.of
(T content) Creates a newEntityModel
with the given content.static <T> EntityModel<T>
Creates a newEntityModel
with the given content andLink
s.static <T> EntityModel<T>
Creates a newEntityModel
with the given content andLink
s (optional). -
Uses of EntityModel in org.springframework.hateoas.server
Methods in org.springframework.hateoas.server that return EntityModelModifier and TypeMethodDescriptiondefault EntityModel<T>
Converts the given entity into aEntityModel
.Methods in org.springframework.hateoas.server that return types with arguments of type EntityModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleRepresentationModelAssembler.toCollectionModel
(Iterable<? extends T> entities) Converts all given entities into resources and wraps the collection as a resource as well.Methods in org.springframework.hateoas.server with parameters of type EntityModelModifier and TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(EntityModel<T> resource) Define links to add to every individualEntityModel
.Method parameters in org.springframework.hateoas.server with type arguments of type EntityModelModifier and TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModel
collection. -
Uses of EntityModel in org.springframework.hateoas.server.reactive
Methods in org.springframework.hateoas.server.reactive that return EntityModelModifier and TypeMethodDescriptiondefault EntityModel<T>
SimpleReactiveRepresentationModelAssembler.addLinks
(EntityModel<T> resource, ServerWebExchange exchange) Define links to add to every individualEntityModel
.Methods in org.springframework.hateoas.server.reactive that return types with arguments of type EntityModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
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 aEntityModel
wrapped in aMono
.Methods in org.springframework.hateoas.server.reactive with parameters of type EntityModelModifier and TypeMethodDescriptiondefault EntityModel<T>
SimpleReactiveRepresentationModelAssembler.addLinks
(EntityModel<T> resource, ServerWebExchange exchange) Define links to add to every individualEntityModel
.Method parameters in org.springframework.hateoas.server.reactive with type arguments of type EntityModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.