org.springframework.web.servlet.view
Class AbstractUrlBasedView

java.lang.Object
  extended byorg.springframework.context.support.ApplicationObjectSupport
      extended byorg.springframework.web.context.support.WebApplicationObjectSupport
          extended byorg.springframework.web.servlet.view.AbstractView
              extended byorg.springframework.web.servlet.view.AbstractUrlBasedView
All Implemented Interfaces:
ApplicationContextAware, BeanNameAware, View
Direct Known Subclasses:
FreeMarkerView, InternalResourceView, RedirectView, VelocityView

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

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
AbstractUrlBasedView()
           
 
Method Summary
 java.lang.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(java.lang.String url)
          Set the URL of the resource that this view wraps.
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, getBeanName, getContentType, getStaticAttributes, render, renderMergedOutputModel, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, requiredContextClass
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUrlBasedView

public AbstractUrlBasedView()
Method Detail

setUrl

public void setUrl(java.lang.String url)
Set the URL of the resource that this view wraps. The URL must be appropriate for the concrete View implementation.


getUrl

public java.lang.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.