程序包 cn.taketoday.web
接口 RequestToViewNameTranslator
- 所有已知实现类:
DefaultRequestToViewNameTranslator
public interface RequestToViewNameTranslator
Strategy interface for translating an incoming
RequestContext
into a logical view name when no view name is explicitly supplied.- 从以下版本开始:
- 4.0 2022/2/3 21:44
- 作者:
- Rob Harrop, Juergen Hoeller, Harry Yang
-
方法概要
修饰符和类型方法说明getViewName(RequestContext request) Translate the givenRequestContextinto a view name.
-
方法详细资料
-
getViewName
Translate the givenRequestContextinto a view name.- 参数:
request- the incomingRequestContextproviding the context from which a view name is to be resolved- 返回:
- the view name, or
nullif no default found - 抛出:
Exception- if view name translation fails
-