com.croftsoft.apps.retirement
Class RetirementServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.croftsoft.apps.retirement.RetirementServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class RetirementServlet
extends HttpServlet

Retirement calculator servlet.

Since:
1999-08-15
Version:
$Id: RetirementServlet.java,v 1.2 2007/09/30 22:32:25 croft Exp $
See Also:
Serialized Form
Author:
David Wallace Croft

Constructor Summary
RetirementServlet()
           
 
Method Summary
static double calculateRequiredAnnualInvestment(double desiredSavingsInterestIncome, double yearsOfSaving, double investmentInterestRate, double savingsInterestRate, double taxRate, double inflationRate)
           
 void destroy()
           
 void doGet(HttpServletRequest req, HttpServletResponse res)
           
 void doPost(HttpServletRequest req, HttpServletResponse res)
           
 String getServletInfo()
           
 void init(ServletConfig servletConfig)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

RetirementServlet

public RetirementServlet()
Method Detail

calculateRequiredAnnualInvestment

public static final double calculateRequiredAnnualInvestment(double desiredSavingsInterestIncome,
                                                             double yearsOfSaving,
                                                             double investmentInterestRate,
                                                             double savingsInterestRate,
                                                             double taxRate,
                                                             double inflationRate)

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class GenericServlet

init

public void init(ServletConfig servletConfig)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)