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:
- AbstractJasperReportsView, 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
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 |
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
- See Also:
ApplicationObjectSupport.setApplicationContext(org.springframework.context.ApplicationContext)
toString
public String toString()
- Overrides:
toString
in class AbstractView
Copyright (C) 2003-2004 The Spring Framework Project.