接口 RequestToViewNameTranslator
public interface RequestToViewNameTranslator
Strategy interface for translating an incomingHttpServletRequest
into a logical view name when no view name is explicitly supplied.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getViewName(HttpServletRequest request)
Translate the givenHttpServletRequest
into a view name.
方法详细资料
getViewName
String getViewName(HttpServletRequest request) throws Exception
Translate the givenHttpServletRequest
into a view name.- 参数:
request
- the incomingHttpServletRequest
providing the context from which a view name is to be resolved- 返回:
- the view name (or
null
if no default found) - 抛出:
Exception
- if view name translation fails