Uses of Class
org.springframework.hateoas.CollectionModel
Packages that use CollectionModel
Package
Description
Value objects to ease creating
Link
s and link driven representations for REST
webservices.HAL-specific extensions, SPIs and Jackson customizations.
Vnd.Error media type.
Server-side components for hypermedia handling.
Spring MVC helper classes to build
Link
s and assemble
RepresentationModel
types.Spring WebFlux components to build
Link
s and assemble
RepresentationModel
types.-
Uses of CollectionModel in org.springframework.hateoas
Subclasses of CollectionModel in org.springframework.hateoasModifier and TypeClassDescriptionclass
PagedModel<T>
DTO to implement binding response representations of pageable collections.class
SlicedModel<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
(ParameterizedTypeReference<T> type) Creates a new empty collection model with the given type defined as fallback type.static <T> CollectionModel<T>
CollectionModel.empty
(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 aCollectionModel
instance with the given content.static <T> CollectionModel<T>
s Creates aCollectionModel
instance with the given content andLink
s.static <T> CollectionModel<T>
Creates aCollectionModel
instance with the given content andLink
s (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
(ParameterizedTypeReference<?> type) Declares the given type as fallback element type in case the underlying collection is empty.CollectionModel.withFallbackType
(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 newCollectionModel
instance 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 TypeClassDescriptionclass
Custom mixin to to render collection content as _embedded. -
Uses of CollectionModel in org.springframework.hateoas.mediatype.vnderrors
Subclasses of CollectionModel in org.springframework.hateoas.mediatype.vnderrors -
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 anIterable
orT
s into anIterable
ofRepresentationModel
and wraps them in aCollectionModel
instance.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 TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModel
collection. -
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, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.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, ServerWebExchange exchange) Converts anIterable
orT
s into anIterable
ofRepresentationModel
and wraps them in aCollectionModel
instance.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.Methods in org.springframework.hateoas.server.reactive with parameters of type CollectionModelModifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.
Problem
to form vendor neutral error messages.