类 AbstractUrlBasedView
java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
cn.taketoday.web.view.AbstractView
cn.taketoday.web.view.AbstractUrlBasedView
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.beans.factory.BeanNameAware,cn.taketoday.beans.factory.InitializingBean,cn.taketoday.context.ApplicationContextAware,View
- 直接已知子类:
AbstractPdfStamperView,AbstractTemplateView,InternalResourceView,RedirectView,ScriptTemplateView,XsltView
public abstract class AbstractUrlBasedView
extends AbstractView
implements cn.taketoday.beans.factory.InitializingBean
Abstract base class for URL-based views. Provides a consistent way of
holding the URL that a View wraps, in the form of a "url" bean property.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
-
字段概要
字段从类继承的字段 cn.taketoday.web.view.AbstractView
DEFAULT_CONTENT_TYPE从类继承的字段 cn.taketoday.context.support.ApplicationObjectSupport
applicationContext, log, messageSourceAccessor从接口继承的字段 cn.taketoday.web.view.View
RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE -
构造器概要
构造器限定符构造器说明protectedConstructor for use as a bean.protectedCreate a new AbstractUrlBasedView with the given URL. -
方法概要
修饰符和类型方法说明voidbooleancheckResource(Locale locale) Check whether the underlying resource that the configured URL points to actually exists.getUrl()Return the URL of the resource that this view wraps.protected booleanReturn whether the 'url' property is required.voidSet the URL of the resource that this view wraps.toString()从类继承的方法 cn.taketoday.web.view.AbstractView
addStaticAttribute, createMergedOutputModel, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestContextToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposeOutputRedirectModel, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse从类继承的方法 cn.taketoday.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext, unwrapContext, unwrapFactory
-
字段详细资料
-
url
-
-
构造器详细资料
-
AbstractUrlBasedView
protected AbstractUrlBasedView()Constructor for use as a bean. -
AbstractUrlBasedView
Create a new AbstractUrlBasedView with the given URL.- 参数:
url- the URL to forward to
-
-
方法详细资料
-
setUrl
Set the URL of the resource that this view wraps. The URL must be appropriate for the concrete View implementation. -
getUrl
Return the URL of the resource that this view wraps. -
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中cn.taketoday.beans.factory.InitializingBean- 抛出:
Exception
-
isUrlRequired
protected boolean isUrlRequired()Return whether the 'url' property is required.The default implementation returns
true. This can be overridden in subclasses. -
checkResource
Check whether the underlying resource that the configured URL points to actually exists.- 参数:
locale- the desired Locale that we're looking for- 返回:
trueif the resource exists (or is assumed to exist);falseif we know that it does not exist- 抛出:
Exception- if the resource exists but is invalid (e.g. could not be parsed)
-
toString
- 覆盖:
toString在类中AbstractView
-