クラス AbstractUrlBasedView
java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
- 実装されているすべてのインターフェース:
Aware、BeanNameAware、InitializingBean、ApplicationContextAware、ServletContextAware、View
- 既知の直属サブクラス
AbstractPdfStamperView、AbstractTemplateView、InternalResourceView、RedirectView、ScriptTemplateView、XsltView
URL ベースのビューの抽象基本クラス。"url" Bean プロパティの形式で、ビューがラップする URL を保持する一貫した方法を提供します。
- 導入:
- 13.12.2003
- 作成者:
- Juergen Hoeller
フィールドのサマリー
クラス org.springframework.web.servlet.view.AbstractView から継承されたフィールド
DEFAULT_CONTENT_TYPEクラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
loggerインターフェース org.springframework.web.servlet.View から継承されたフィールド
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPEコンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedBean として使用するコンストラクター。protected指定された URL で新しい AbstractUrlBasedView を作成します。メソッドのサマリー
修飾子と型メソッド説明voidbooleancheckResource(LocaleSE locale) 構成された URL が指す基本リソースが実際に存在するかどうかを確認します。getUrl()このビューがラップするリソースの URL を返します。protected boolean'url' プロパティが必要かどうかを返します。voidこのビューがラップするリソースの URL を設定します。toString()クラス org.springframework.web.servlet.view.AbstractView から継承されたメソッド
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponseクラス org.springframework.web.context.support.WebApplicationObjectSupport から継承されたメソッド
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextクラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
コンストラクターの詳細
AbstractUrlBasedView
protected AbstractUrlBasedView()Bean として使用するコンストラクター。AbstractUrlBasedView
指定された URL で新しい AbstractUrlBasedView を作成します。- パラメーター:
url- 転送先の URL
メソッドの詳細
setUrl
このビューがラップするリソースの URL を設定します。URL は、具体的なビューの実装に適している必要があります。getUrl
このビューがラップするリソースの URL を返します。afterPropertiesSet
インターフェースからコピーされた説明:InitializingBeanすべての Bean プロパティを設定し、BeanFactoryAware、ApplicationContextAwareなどを満たした後、包含BeanFactoryによって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet - 例外:
ExceptionSE- 構成の誤り(必須プロパティの設定の失敗など)の場合、またはその他の理由で初期化が失敗した場合
isUrlRequired
protected boolean isUrlRequired()'url' プロパティが必要かどうかを返します。デフォルトの実装は
trueを返します。これはサブクラスでオーバーライドできます。checkResource
構成された URL が指す基本リソースが実際に存在するかどうかを確認します。- パラメーター:
locale- 探している希望のロケール- 戻り値:
- リソースが存在する(または存在すると想定される)場合は
true。falseが存在しないことがわかっている場合 - 例外:
ExceptionSE- リソースは存在するが無効である場合 (たとえば解析できませんでした)
toString
- オーバーライド:
- クラス
AbstractViewのtoString