Uses of Class
org.springframework.hateoas.EntityModel
Packages that use EntityModel
Package
Description
Value objects to ease creating
Links and link driven representations for REST
webservices.Server-side components for hypermedia handling.
Spring WebFlux components to build
Links 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 newCollectionModelinstance 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 aPagedModelinstance 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 aSlicedModelinstance 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 newEntityModelwith the given content.static <T> EntityModel<T>Creates a newEntityModelwith the given content andLinks.static <T> EntityModel<T>Creates a newEntityModelwith the given content andLinks (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 TypeMethodDescriptionvoidSimpleRepresentationModelAssembler.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 TypeMethodDescriptionvoidSimpleRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModelcollection. -
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, org.springframework.web.server.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, org.springframework.web.server.ServerWebExchange exchange) Define links to add to theCollectionModelcollection.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 aEntityModelwrapped in aMono.Methods in org.springframework.hateoas.server.reactive with parameters of type EntityModelModifier and TypeMethodDescriptiondefault EntityModel<T>SimpleReactiveRepresentationModelAssembler.addLinks(EntityModel<T> resource, org.springframework.web.server.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, org.springframework.web.server.ServerWebExchange exchange) Define links to add to theCollectionModelcollection.