All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.web.reactive.result.view.ViewResolver Maven / Gradle / Ivy

package org.springframework.web.reactive.result.view;

import java.util.Locale;

import reactor.core.publisher.Mono;

/**
 * Contract to resolve a view name to a {@link View} instance. The view name may
 * correspond to an HTML template or be generated dynamically.
 *
 * 

The process of view resolution is driven through a ViewResolver-based * {@code HandlerResultHandler} implementation called * {@link ViewResolutionResultHandler * ViewResolutionResultHandler}. * * @author Rossen Stoyanchev * @since 5.0 * @see ViewResolutionResultHandler */ public interface ViewResolver { /** * Resolve the view name to a View instance. * @param viewName the name of the view to resolve * @param locale the locale for the request * @return the resolved view or an empty stream */ Mono resolveViewName(String viewName, Locale locale); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy