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,
org.springframework.web.server.ServerWebExchange exchange)
Converts an
Iterable or Ts into an Iterable of RepresentationModel and wraps them
in a CollectionModel instance. |
reactor.core.publisher.Mono<D> |
toModel(T entity,
org.springframework.web.server.ServerWebExchange exchange)
Converts the given entity into a
D, which extends RepresentationModel. |
reactor.core.publisher.Mono<D> toModel(T entity, org.springframework.web.server.ServerWebExchange exchange)
D, which extends RepresentationModel.entity - default reactor.core.publisher.Mono<CollectionModel<D>> toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, org.springframework.web.server.ServerWebExchange exchange)
Iterable or Ts into an Iterable of RepresentationModel and wraps them
in a CollectionModel instance.entities - must not be null.CollectionModel containing D.Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.