public interface

RequestToViewNameTranslator

org.springframework.web.servlet.RequestToViewNameTranslator
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract String getViewName(HttpServletRequest request)
Translate the given HttpServletRequest into a view name.

Public Methods

public abstract String getViewName (HttpServletRequest request)

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
Exception if view name translation fails