接口 LocaleContextResolver

    • 方法详细资料

      • resolveLocaleContext

        LocaleContext resolveLocaleContext​(ServerWebExchange exchange)
        Resolve the current locale context via the given exchange.

        The returned context may be a TimeZoneAwareLocaleContext, containing a locale with associated time zone information. Simply apply an instanceof check and downcast accordingly.

        Custom resolver implementations may also return extra settings in the returned context, which again can be accessed through downcasting.

        参数:
        exchange - current server exchange
        返回:
        the current locale context (never null)