public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean
logger, REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUrlBasedView()
Constructor for use as a bean.
|
protected |
AbstractUrlBasedView(java.lang.String url)
Create a new AbstractUrlBasedView with the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc. |
abstract boolean |
checkResourceExists(java.util.Locale locale)
Check whether the resource for the configured URL actually exists.
|
java.lang.String |
getUrl()
Return the URL of the resource that this view wraps.
|
void |
setUrl(java.lang.String url)
Set the URL of the resource that this view wraps.
|
java.lang.String |
toString() |
createRequestContext, getApplicationContext, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, obtainApplicationContext, render, renderInternal, resolveAsyncAttributes, setApplicationContext, setDefaultCharset, setRequestContextAttribute, setSupportedMediaTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisRedirectViewprotected AbstractUrlBasedView()
protected AbstractUrlBasedView(java.lang.String url)
public void setUrl(@Nullable java.lang.String url)
@Nullable public java.lang.String getUrl()
public void afterPropertiesSet()
throws java.lang.Exception
InitializingBeanBeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet in interface InitializingBeanjava.lang.Exception - in the event of misconfiguration (such as failure to set an
essential property) or if initialization fails for any other reasonpublic abstract boolean checkResourceExists(java.util.Locale locale)
throws java.lang.Exception
locale - the desired Locale that we're looking forfalse if the resource exists
false if we know that it does not existjava.lang.Exception - if the resource exists but is invalid (e.g. could not be parsed)public java.lang.String toString()
toString in class AbstractView