类 AbstractUrlViewController
java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
cn.taketoday.web.WebContentGenerator
cn.taketoday.web.handler.mvc.AbstractController
cn.taketoday.web.handler.mvc.AbstractUrlViewController
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.context.ApplicationContextAware,Controller,HttpRequestHandler
- 直接已知子类:
UrlFilenameViewController
Abstract base class for
Controllers that return a view name
based on the request URL.
Provides infrastructure for determining view names from URLs and configurable
URL lookup. For information on the latter, see alwaysUseFullPath
and urlDecode properties.
- 从以下版本开始:
- 4.0 2022/2/8 16:49
- 作者:
- Juergen Hoeller, Harry Yang
-
字段概要
从类继承的字段 cn.taketoday.web.WebContentGenerator
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST从类继承的字段 cn.taketoday.context.support.ApplicationObjectSupport
applicationContext, log, messageSourceAccessor从接口继承的字段 cn.taketoday.web.HttpRequestHandler
NONE_RETURN_VALUE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract StringgetViewNameForRequest(RequestContext request) Return the name of the view to render for this request, based on the given lookup path.protected ModelAndViewhandleRequestInternal(RequestContext request) Retrieves the URL path to use for lookup and delegates togetViewNameForRequest(cn.taketoday.web.RequestContext).从类继承的方法 cn.taketoday.web.handler.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession从类继承的方法 cn.taketoday.web.WebContentGenerator
applyCacheControl, applyCacheSeconds, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isRequireSession, prepareResponse, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setVaryByRequestHeaders从类继承的方法 cn.taketoday.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext, unwrapContext, unwrapFactory
-
构造器详细资料
-
AbstractUrlViewController
public AbstractUrlViewController()
-
-
方法详细资料
-
handleRequestInternal
Retrieves the URL path to use for lookup and delegates togetViewNameForRequest(cn.taketoday.web.RequestContext). Also adds the content ofRequestContext.getInputRedirectModel()to the model. -
getViewNameForRequest
Return the name of the view to render for this request, based on the given lookup path. Called byhandleRequestInternal(cn.taketoday.web.RequestContext).- 参数:
request- current HTTP request- 返回:
- a view name for this request (never
null) - 另请参阅:
-