spring-framework / org.springframework.web.servlet.support / RequestContextUtils / getTheme

getTheme

@Nullable open static fun getTheme(request: HttpServletRequest): Theme

Retrieves the current theme from the given request, using the ThemeResolver and ThemeSource bound to the request by the DispatcherServlet.

Parameters

request - current HTTP request

Return
the current theme, or null if not found

See Also
#getThemeResolver