info.magnolia.module.rssaggregator.servlet
Class AbstractServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by info.magnolia.module.rssaggregator.servlet.AbstractServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
FeedSyndicationServlet

Deprecated. since 1.0 use MVCServlet instead

public abstract class AbstractServlet
extends javax.servlet.http.HttpServlet

Convenience base servlet for simple request handling. As such provides a main entry point for handling POST and GET requests.

Author:
Rob van der Linden Vooren
See Also:
Serialized Form

Constructor Summary
AbstractServlet()
          Deprecated.  
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. Delegate POST requests to processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. Delegate GET requests to processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
abstract  void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. Subclass need implement this method in order to handle the request.
protected  void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. Delegates to template method handleRequest which handles actual handling of the request.
 
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, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServlet

public AbstractServlet()
Deprecated. 
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Deprecated. 
Delegate POST requests to processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Deprecated. 
Delegate GET requests to processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

processRequest

protected void processRequest(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
Deprecated. 
Delegates to template method handleRequest which handles actual handling of the request. Additionaly wraps exceptions other than IOException and ServletException in a ServletException.

Parameters:
request - the request to handle
response - the associated response
Throws:
IOException - if an input or output error is detected when the servlet handles the request
javax.servlet.ServletException - if the request could not be handled

handleRequest

public abstract void handleRequest(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws Exception
Deprecated. 
Subclass need implement this method in order to handle the request.

Parameters:
request - the request to handle
response - the associated response
Throws:
Exception - if an exception occurs during request handling


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.