org.nuiton.rss
Class RSSGeneratorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.nuiton.rss.BaseServlet<RSSGenerator>
              extended by org.nuiton.rss.RSSGeneratorServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RSSGeneratorServlet
extends BaseServlet<RSSGenerator>

Servlet permettant de generer des flux generes par RSSGenerator et de les publier.

Author:
chemit
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuiton.rss.BaseServlet
delegate, log
 
Constructor Summary
RSSGeneratorServlet()
           
 
Method Summary
protected  void addFieldValue(Field field, String value, Map<Field,Object> values)
           
 void doAddItem(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String feedName, File file)
           
 void doCreateFeed(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String feedName, File file)
           
 void doDeleteFeed(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String feedName, File file)
           
 void doList(javax.servlet.http.HttpServletResponse response)
           
 void doShow(File file, String feedName, javax.servlet.http.HttpServletResponse response)
           
protected  ConfigInitializer<javax.servlet.ServletConfig,?> newConfigInitializer()
           
protected  RSSGenerator newDelegate()
           
protected  void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes requests for both HTTP GET and POST methods.
 
Methods inherited from class org.nuiton.rss.BaseServlet
convertToInt, doGet, doPost, getServletInfo, init, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSSGeneratorServlet

public RSSGeneratorServlet()
Method Detail

doCreateFeed

public void doCreateFeed(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         String feedName,
                         File file)
                  throws javax.servlet.ServletException,
                         IOException
Throws:
javax.servlet.ServletException
IOException

doDeleteFeed

public void doDeleteFeed(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         String feedName,
                         File file)
                  throws javax.servlet.ServletException,
                         IOException
Throws:
javax.servlet.ServletException
IOException

doAddItem

public void doAddItem(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      String feedName,
                      File file)
               throws javax.servlet.ServletException,
                      IOException
Throws:
javax.servlet.ServletException
IOException

doList

public void doList(javax.servlet.http.HttpServletResponse response)
            throws IOException
Throws:
IOException

doShow

public void doShow(File file,
                   String feedName,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   IOException
Throws:
javax.servlet.ServletException
IOException

newConfigInitializer

protected ConfigInitializer<javax.servlet.ServletConfig,?> newConfigInitializer()
Specified by:
newConfigInitializer in class BaseServlet<RSSGenerator>
Returns:
a new ConfigInitializer to be used in BaseServlet.init(ServletConfig, boolean) method to prepare default config.

newDelegate

protected RSSGenerator newDelegate()
                            throws Exception
Specified by:
newDelegate in class BaseServlet<RSSGenerator>
Returns:
the new delegate object to be used by servlet
Throws:
Exception - if any problem while instanciation

processRequest

protected void processRequest(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
Processes requests for both HTTP GET and POST methods.

Specified by:
processRequest in class BaseServlet<RSSGenerator>
Parameters:
request - servlet request
response - servlet response
Throws:
IOException - TODO
javax.servlet.ServletException - TODO

addFieldValue

protected void addFieldValue(Field field,
                             String value,
                             Map<Field,Object> values)


Copyright © 2008-2012 CodeLutin. All Rights Reserved.