public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean
DEFAULT_CONTENT_TYPEloggerPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE| 修飾子 | コンストラクターと説明 |
|---|---|
protected | AbstractUrlBasedView()Bean として使用するコンストラクター。 |
protected | AbstractUrlBasedView(StringSE url) 指定された URL で新しい AbstractUrlBasedView を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() 指定されたすべての Bean プロパティを設定した(そして BeanFactoryAware と ApplicationContextAware を満たした)後に BeanFactory によって呼び出されます。 |
boolean | checkResource(LocaleSE locale) 構成された URL が指す基本リソースが実際に存在するかどうかを確認します。 |
StringSE | getUrl() このビューがラップするリソースの URL を返します。 |
protected boolean | isUrlRequired()'url' プロパティが必要かどうかを返します。 |
void | setUrl(StringSE url) このビューがラップするリソースの URL を設定します。 |
StringSE | toString() |
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContextcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEprotected AbstractUrlBasedView()
protected AbstractUrlBasedView(StringSE url)
url - 転送先の URLpublic void setUrl(@Nullable StringSE url)
public void afterPropertiesSet()
throws ExceptionSEInitializingBeanこのメソッドにより、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