Class SpringReactiveModelAdditionsUtils

Object
org.thymeleaf.spring6.util.SpringReactiveModelAdditionsUtils

public final class SpringReactiveModelAdditionsUtils extends Object

Utilities for identifying names of execution attributes defined at dialects that should be resolved before view execution in Spring WebFlux view executions. Execution attributes identified this way will be added to the model attributes by the 1st phase of the execution of Thymeleaf Spring WebFlux views in order to be resolved before the view is really executed (2nd phase).

Values of these execution attributes are allowed to be:

  • Publisher<?> (including Flux<?> and Mono<?>).
  • Supplier<? extends Publisher<?>>: The supplier will be called at View rendering time and the result will be added to the Model.
  • Function<ServerWebExchange,? extends Publisher<?>>: The function will be called at View rendering time and the result will be added to the Model.

Names will be prefixed with: "ThymeleafReactiveModelAdditions:"

Since:
3.1.0
Author:
Daniel Fernández
  • Method Details

    • isReactiveModelAdditionName

      public static boolean isReactiveModelAdditionName(String name)
    • fromReactiveModelAdditionName

      public static String fromReactiveModelAdditionName(String name)
    • toReactiveModelAdditionName

      public static String toReactiveModelAdditionName(String name)