public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
修飾子 | コンストラクターと説明 |
---|---|
protected | AbstractUrlBasedView() Bean として使用するコンストラクター。 |
protected | AbstractUrlBasedView(StringSE url) 指定された URL で新しい AbstractUrlBasedView を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
boolean | checkResource(LocaleSE locale) 構成された URL が指す基本リソースが実際に存在するかどうかを確認します。 |
StringSE | getUrl() このビューがラップするリソースの URL を返します。 |
protected boolean | isUrlRequired() 'url' プロパティが必要かどうかを返します。 |
void | setUrl(StringSE url) このビューがラップするリソースの URL を設定します。 |
StringSE | toString() |
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
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
protected AbstractUrlBasedView()
protected AbstractUrlBasedView(StringSE url)
url
- 転送先の URLpublic void setUrl(@Nullable StringSE url)
public void afterPropertiesSet() throws ExceptionSE
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet
ExceptionSE
- 構成の誤り(必須プロパティの設定の失敗など)の場合、またはその他の理由で初期化が失敗した場合 protected boolean isUrlRequired()
デフォルトの実装は true
を返します。これはサブクラスでオーバーライドできます。
public boolean checkResource(LocaleSE locale) throws ExceptionSE
locale
- 探している希望のロケール true
。false
が存在しないことがわかっている場合 ExceptionSE
- リソースは存在するが無効である場合 (たとえば解析できませんでした)public StringSE toString()
AbstractView
の toString