public abstract class AbstractUrlBasedView extends AbstractView implements org.springframework.beans.factory.InitializingBean
logger, REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAMEBINDING_CONTEXT_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUrlBasedView()
Constructor for use as a bean.
|
protected |
AbstractUrlBasedView(String url)
Create a new AbstractUrlBasedView with the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
abstract boolean |
checkResourceExists(Locale locale)
Check whether the resource for the configured URL actually exists.
|
String |
getUrl()
Return the URL of the resource that this view wraps.
|
void |
setUrl(String url)
Set the URL of the resource that this view wraps.
|
String |
toString() |
createRequestContext, formatViewName, getApplicationContext, getBeanName, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, obtainApplicationContext, render, renderInternal, resolveAsyncAttributes, resolveAsyncAttributes, setApplicationContext, setBeanName, setDefaultCharset, setRequestContextAttribute, setSupportedMediaTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisRedirectViewprotected AbstractUrlBasedView()
protected AbstractUrlBasedView(String url)
public void setUrl(@Nullable
String url)
@Nullable public String getUrl()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic abstract boolean checkResourceExists(Locale locale) throws Exception
locale - the desired Locale that we're looking forfalse if the resource exists
false if we know that it does not existException - if the resource exists but is invalid (e.g. could not be parsed)public String toString()
toString in class AbstractView