org.springframework.web.servlet.view
Class AbstractUrlBasedView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
- All Implemented Interfaces:
- ApplicationContextAware, BeanNameAware, View
- Direct Known Subclasses:
- AbstractTemplateView, InternalResourceView, RedirectView
- public abstract class AbstractUrlBasedView
- extends AbstractView
Abstract base class for URL-based views. Provides a consistent way of
holding the URL that a View wraps, in the form of a "url" bean property.
- Since:
- 13.12.2003
- Author:
- Juergen Hoeller
Method Summary |
String |
getUrl()
Return the URL of the resource that this view wraps. |
protected void |
initApplicationContext()
Overridden lifecycle method to check that 'url' property is set. |
void |
setUrl(String url)
Set the URL of the resource that this view wraps.
|
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractUrlBasedView
public AbstractUrlBasedView()
setUrl
public void setUrl(String url)
- Set the URL of the resource that this view wraps.
The URL must be appropriate for the concrete View implementation.
getUrl
public String getUrl()
- Return the URL of the resource that this view wraps.
initApplicationContext
protected void initApplicationContext()
- Overridden lifecycle method to check that 'url' property is set.
- Overrides:
initApplicationContext
in class ApplicationObjectSupport
Copyright (C) 2003-2004 The Spring Framework Project.