public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean
logger| 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()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
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() |
getApplicationContext, getModelAttributes, getSupportedMediaTypes, render, renderInternal, setApplicationContext, setSupportedMediaTypesprotected AbstractUrlBasedView()
protected AbstractUrlBasedView(String url)
public void setUrl(String url)
public String getUrl()
public void afterPropertiesSet()
throws Exception
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBeanException - in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.public 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