Uses of Class
org.springframework.hateoas.CollectionModel
Packages that use CollectionModel
Package
Description
Value objects to ease creating
Links and link driven representations for REST
webservices.HAL-specific extensions, SPIs and Jackson customizations.
Server-side components for hypermedia handling.
Spring MVC helper classes to build
Links and assemble
RepresentationModel types.Spring WebFlux components to build
Links and assemble
RepresentationModel types.-
Uses of CollectionModel in org.springframework.hateoas
Subclasses of CollectionModel in org.springframework.hateoasModifier and TypeClassDescriptionclassPagedModel<T>DTO to implement binding response representations of pageable collections.classSlicedModel<T>DTO to implement binding response representations of Slice collections.Methods in org.springframework.hateoas that return CollectionModelModifier and TypeMethodDescriptionstatic <T> CollectionModel<T>CollectionModel.empty()Creates a new empty collection model.static <T> CollectionModel<T>Creates a new empty collection model with the given type defined as fallback type.static <T> CollectionModel<T>Creates a new empty collection model with the given links.static <T> CollectionModel<T>CollectionModel.empty(org.springframework.core.ParameterizedTypeReference<T> type) Creates a new empty collection model with the given type defined as fallback type.static <T> CollectionModel<T>CollectionModel.empty(org.springframework.core.ResolvableType elementType) Creates a new empty collection model with the given type defined as fallback type.static <T> CollectionModel<T>Creates a new empty collection model with the given links.static <T> CollectionModel<T>Creates aCollectionModelinstance with the given content.static <T> CollectionModel<T>s Creates aCollectionModelinstance with the given content andLinks.static <T> CollectionModel<T>Creates aCollectionModelinstance with the given content andLinks (optional).CollectionModel.withFallbackType(Class<? super T> type, Class<?>... generics) Declares the given type as fallback element type in case the underlying collection is empty.CollectionModel.withFallbackType(org.springframework.core.ParameterizedTypeReference<?> type) Declares the given type as fallback element type in case the underlying collection is empty.CollectionModel.withFallbackType(org.springframework.core.ResolvableType type) Declares the given type as fallback element type in case the underlying collection is empty.static <T extends EntityModel<S>,S>
CollectionModel<T>Creates a newCollectionModelinstance by wrapping the given domain class instances into aEntityModel. -
Uses of CollectionModel in org.springframework.hateoas.mediatype.hal
Subclasses of CollectionModel in org.springframework.hateoas.mediatype.halModifier and TypeClassDescriptionclassCustom mixin to to render collection content as _embedded. -
Uses of CollectionModel in org.springframework.hateoas.server
Methods in org.springframework.hateoas.server that return CollectionModelModifier and TypeMethodDescriptiondefault CollectionModel<D>RepresentationModelAssembler.toCollectionModel(Iterable<? extends T> entities) Converts anIterableorTs into anIterableofRepresentationModeland wraps them in aCollectionModelinstance.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.Methods in org.springframework.hateoas.server with parameters of type CollectionModelModifier and TypeMethodDescriptionvoidSimpleRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModelcollection. -
Uses of CollectionModel in org.springframework.hateoas.server.mvc
Methods in org.springframework.hateoas.server.mvc that return CollectionModelModifier and TypeMethodDescriptionRepresentationModelAssemblerSupport.toCollectionModel(Iterable<? extends T> entities) -
Uses of CollectionModel in org.springframework.hateoas.server.reactive
Methods in org.springframework.hateoas.server.reactive that return CollectionModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources, org.springframework.web.server.ServerWebExchange exchange) Define links to add to theCollectionModelcollection.Methods in org.springframework.hateoas.server.reactive that return types with arguments of type CollectionModelModifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<CollectionModel<D>>ReactiveRepresentationModelAssembler.toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, org.springframework.web.server.ServerWebExchange exchange) Converts anIterableorTs into anIterableofRepresentationModeland wraps them in aCollectionModelinstance.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.Methods in org.springframework.hateoas.server.reactive with parameters of type CollectionModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources, org.springframework.web.server.ServerWebExchange exchange) Define links to add to theCollectionModelcollection.