org.springframework.samples.petclinic.web
Class VisitsAtomView

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.springframework.web.servlet.view.feed.AbstractFeedView<com.sun.syndication.feed.atom.Feed>
                  extended by org.springframework.web.servlet.view.feed.AbstractAtomFeedView
                      extended by org.springframework.samples.petclinic.web.VisitsAtomView
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public class VisitsAtomView
extends org.springframework.web.servlet.view.feed.AbstractAtomFeedView

A view creating a Atom representation from a list of Visit objects.

Author:
Alef Arendsen, Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.feed.AbstractAtomFeedView
DEFAULT_FEED_TYPE
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.View
RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
VisitsAtomView()
           
 
Method Summary
protected  java.util.List<com.sun.syndication.feed.atom.Entry> buildFeedEntries(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void buildFeedMetadata(java.util.Map<java.lang.String,java.lang.Object> model, com.sun.syndication.feed.atom.Feed feed, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.springframework.web.servlet.view.feed.AbstractAtomFeedView
buildFeedEntries, newFeed, setFeedType
 
Methods inherited from class org.springframework.web.servlet.view.feed.AbstractFeedView
renderMergedOutputModel
 
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
 

Constructor Detail

VisitsAtomView

public VisitsAtomView()
Method Detail

buildFeedMetadata

protected void buildFeedMetadata(java.util.Map<java.lang.String,java.lang.Object> model,
                                 com.sun.syndication.feed.atom.Feed feed,
                                 javax.servlet.http.HttpServletRequest request)
Overrides:
buildFeedMetadata in class org.springframework.web.servlet.view.feed.AbstractFeedView<com.sun.syndication.feed.atom.Feed>

buildFeedEntries

protected java.util.List<com.sun.syndication.feed.atom.Entry> buildFeedEntries(java.util.Map<java.lang.String,java.lang.Object> model,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)
                                                                        throws java.lang.Exception
Specified by:
buildFeedEntries in class org.springframework.web.servlet.view.feed.AbstractAtomFeedView
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.