当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
AbstractUrlBasedView (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
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:
- BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View
- Direct Known Subclasses:
- AbstractJasperReportsView, AbstractTemplateView, InternalResourceView, RedirectView, XsltView
public abstract class AbstractUrlBasedView
- extends AbstractView
- implements InitializingBean
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 |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware). |
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()
|
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
AbstractUrlBasedView
protected AbstractUrlBasedView()
- Constructor for use as a bean.
AbstractUrlBasedView
protected AbstractUrlBasedView(String url)
- Create a new AbstractUrlBasedView with the given URL.
- Parameters:
url
- the URL to forward to
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.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Description copied from interface:
InitializingBean
- Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
This 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.
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
- in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.
toString
public String toString()
- Overrides:
toString
in class AbstractView
Copyright © 2002-2007 The Spring Framework.