Uses of Class
org.springframework.hateoas.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
Modifier 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.Modifier 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
Modifier and TypeClassDescriptionclass
Custom mixin to to render collection content as _embedded. -
Uses of CollectionModel in org.springframework.hateoas.mediatype.vnderrors
-
Uses of CollectionModel in org.springframework.hateoas.server
Modifier 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.Modifier and TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModel
collection. -
Uses of CollectionModel in org.springframework.hateoas.server.mvc
Modifier and TypeMethodDescriptionRepresentationModelAssemblerSupport.toCollectionModel
(Iterable<? extends T> entities) -
Uses of CollectionModel in org.springframework.hateoas.server.reactive
Modifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.Modifier 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.Modifier 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.