Class WebFluxLinkBuilder.WebFluxLink
java.lang.Object
org.springframework.hateoas.server.reactive.WebFluxLinkBuilder.WebFluxLink
- Enclosing class:
- WebFluxLinkBuilder
Intermediate representation of a
Link
within a reactive pipeline to easily add Affordance
s from
method invocations.- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionandAffordance
(Object invocation) Adds the affordance created by the given virtual method invocation.Creates a newWebFluxLinkBuilder.WebFluxLink
with the currentLink
instance transformed using the given mapper.reactor.core.publisher.Mono<Link>
toMono()
Returns the underlyingMono
ofLink
for further handling within a reactive pipeline.reactor.core.publisher.Mono<Link>
-
Constructor Details
-
WebFluxLink
-
-
Method Details
-
andAffordance
Adds the affordance created by the given virtual method invocation.- Parameters:
invocation
- must not be null.- Returns:
- See Also:
-
map
Creates a newWebFluxLinkBuilder.WebFluxLink
with the currentLink
instance transformed using the given mapper.- Parameters:
mapper
- must not be null.- Returns:
-
toMono
Returns the underlyingMono
ofLink
for further handling within a reactive pipeline.- Returns:
-
toMono
Returns aMono
ofLink
with the current one augmented by the givenFunction
. Allows immediate customization of theLink
instance and immediately return to a general reactive API.- Parameters:
finisher
- must not be null.- Returns:
-