程序包 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

      @Nullable String getViewName(RequestContext request) throws Exception
      Translate the given RequestContext into a view name.
      参数:
      request - the incoming RequestContext 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