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 Affordances from
method invocations.- Author:
- Oliver Gierke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandAffordance(Object invocation) Adds the affordance created by the given virtual method invocation.Creates a newWebFluxLinkBuilder.WebFluxLinkwith the currentLinkinstance transformed using the given mapper.reactor.core.publisher.Mono<Link>toMono()Returns the underlyingMonoofLinkfor 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.WebFluxLinkwith the currentLinkinstance transformed using the given mapper.- Parameters:
mapper- must not be null.- Returns:
-
toMono
Returns the underlyingMonoofLinkfor further handling within a reactive pipeline.- Returns:
-
toMono
Returns aMonoofLinkwith the current one augmented by the givenFunction. Allows immediate customization of theLinkinstance and immediately return to a general reactive API.- Parameters:
finisher- must not be null.- Returns:
-