Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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, Juergen Hoeller

Method Summary
`java.lang.String` | `getViewName(javax.servlet.http.HttpServletRequest request)` Translate the given `HttpServletRequest` into a view name.

Method Detail

### getViewName

    java.lang.String getViewName(javax.servlet.http.HttpServletRequest request)
                                 throws java.lang.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 (or `null` if no default found)
  Throws:
    `java.lang.Exception` - if view name translation fails

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD