spring-framework / org.springframework.web.servlet / RequestToViewNameTranslator / getViewName

getViewName

@Nullable abstract fun getViewName(request: HttpServletRequest): String

Translate the given HttpServletRequest into a view name.

Parameters

request - the incoming HttpServletRequest providing the context from which a view name is to be resolved

Exceptions

Exception - if view name translation fails

Return
the view name, or null if no default found