org.springframework.web.servlet.theme

Class FixedThemeResolver

    • Constructor Detail

      • FixedThemeResolver

        public FixedThemeResolver()
    • Method Detail

      • resolveThemeName

        public java.lang.String resolveThemeName(HttpServletRequest request)
        Description copied from interface: ThemeResolver
        Resolve the current theme name via the given request. Should return a default theme as fallback in any case.
        Parameters:
        request - request to be used for resolution
        Returns:
        the current theme name
      • setThemeName

        public void setThemeName(HttpServletRequest request,
                                 @Nullable
                                 HttpServletResponse response,
                                 @Nullable
                                 java.lang.String themeName)
        Description copied from interface: ThemeResolver
        Set the current theme name to the given one.
        Parameters:
        request - request to be used for theme name modification
        response - response to be used for theme name modification
        themeName - the new theme name (null or empty to reset it)