org.jasig.portal.spring.web.servlet.view
Class XmlView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.jasig.portal.spring.web.servlet.view.XmlView
All Implemented Interfaces:
BeanNameAware, ApplicationContextAware, ServletContextAware, View

public class XmlView
extends AbstractView

Simple implementation of a Spring View for displaying XML Documents.

Version:
$Revision$
Author:
Drew Mazurek, Jen Bourey, jbourey@unicon.net

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Constructor Summary
XmlView()
          Construct a new XmlView instance.
 
Method Summary
protected  void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response)
           
 void setXmlKey(String xmlKey)
          Set the model key containing the XML.
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, toString, writeToResponse
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

XmlView

public XmlView()
Construct a new XmlView instance.

Method Detail

setXmlKey

public void setXmlKey(String xmlKey)
Set the model key containing the XML.

Parameters:
xmlKey -

renderMergedOutputModel

protected void renderMergedOutputModel(Map model,
                                       HttpServletRequest request,
                                       HttpServletResponse response)
                                throws Exception
Specified by:
renderMergedOutputModel in class AbstractView
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.