站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

RequestToViewNameTranslator (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.web.servlet
Interface RequestToViewNameTranslator

All Known Implementing Classes:
DefaultRequestToViewNameTranslator

public interface RequestToViewNameTranslator

Strategy interface for translating an incoming HttpServletRequest into a logical view name when no view name is explicitly supplied.

Since:
2.0
Author:
Rob Harrop

Method Summary
 String getViewName(HttpServletRequest request)
          Translate the given HttpServletRequest into a view name.
 

Method Detail

getViewName

String getViewName(HttpServletRequest request)
                   throws Exception
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
Returns:
the view name (never null)
Throws:
Exception - if view name translation fails

The Spring Framework

Copyright © 2002-2007 The Spring Framework.