public interface ReactiveRepresentationModelAssembler<T,D extends RepresentationModel<D>>
RepresentationModelAssembler
combined with SimpleRepresentationModelAssembler
.Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<CollectionModel<D>> |
toCollectionModel(reactor.core.publisher.Flux<? extends T> entities,
ServerWebExchange exchange)
Converts an
Iterable or T s into an Iterable of RepresentationModel and wraps them
in a CollectionModel instance. |
reactor.core.publisher.Mono<D> |
toModel(T entity,
ServerWebExchange exchange)
Converts the given entity into a
D , which extends RepresentationModel . |
reactor.core.publisher.Mono<D> toModel(T entity, ServerWebExchange exchange)
D
, which extends RepresentationModel
.entity
- default reactor.core.publisher.Mono<CollectionModel<D>> toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, ServerWebExchange exchange)
Iterable
or T
s into an Iterable
of RepresentationModel
and wraps them
in a CollectionModel
instance.entities
- must not be null.CollectionModel
containing D
.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.