interface RequestToViewNameTranslator
Strategy interface for translating an incoming javax.servlet.http.HttpServletRequest into a logical view name when no view name is explicitly supplied.
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
abstract fun getViewName(request: HttpServletRequest): String
Translate the given HttpServletRequest into a view name. |
open class DefaultRequestToViewNameTranslator : RequestToViewNameTranslator
RequestToViewNameTranslator that simply transforms the URI of the incoming request into a view name. Can be explicitly defined as the The default transformation simply strips leading and trailing slashes as well as the file extension of the URI, and returns the result as the view name with the configured The stripping of the leading slash and file extension can be disabled using the Find below some examples of request to view name translation.
|