Package org.springframework.web.servlet
Interface RequestToViewNameTranslator
- All Known Implementing Classes:
DefaultRequestToViewNameTranslator
public interface RequestToViewNameTranslator
Strategy interface for translating an incomingHttpServletRequestinto a logical view name when no view name is explicitly supplied.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetViewName(HttpServletRequest request)Translate the givenHttpServletRequestinto a view name.
Method Detail
getViewName
String getViewName(HttpServletRequest request) throws Exception
Translate the givenHttpServletRequestinto a view name.- Parameters:
request- the incomingHttpServletRequestproviding the context from which a view name is to be resolved- Returns:
- the view name (or
nullif no default found) - Throws:
Exception- if view name translation fails