com.sun.syndication.samples.servlet
Class FeedServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.sun.syndication.samples.servlet.FeedServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FeedServlet
extends javax.servlet.http.HttpServlet

Sample Servlet that serves a feed created with Rome.

The feed type is determined by the 'type' request parameter, if the parameter is missing it defaults to the 'default.feed.type' servlet init parameter, if the init parameter is missing it defaults to 'atom_0.3'

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
FeedServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  com.sun.syndication.feed.synd.SyndFeed getFeed(javax.servlet.http.HttpServletRequest req)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedServlet

public FeedServlet()
Method Detail

init

public void init()

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException
Throws:
java.io.IOException

getFeed

protected com.sun.syndication.feed.synd.SyndFeed getFeed(javax.servlet.http.HttpServletRequest req)
                                                  throws java.io.IOException,
                                                         com.sun.syndication.io.FeedException
Throws:
java.io.IOException
com.sun.syndication.io.FeedException


Copyright © 2004-2006 Sun Microsystems. All Rights Reserved.