Class MassCalcServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.compomics.util.general.servlet.MassCalcServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MassCalcServlet extends javax.servlet.http.HttpServlet
This class implements the MassCalc class as a servlet.
It also generates its own submission form upon first contact.
Author:
Lennart Martens
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
    Override of parent class, implemented here as a simple forward to the 'doPost' method.
    void
    doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
    Override of parent class; this method handles post requests, and through forwarding also get requests.

    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 Details

    • MassCalcServlet

      public MassCalcServlet()
  • Method Details

    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
      Override of parent class, implemented here as a simple forward to the 'doPost' method.
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Parameters:
      req - HttpServletRequest with the request
      res - HttpServletResponse with the response
    • doPost

      public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
      Override of parent class; this method handles post requests, and through forwarding also get requests. The function of this servlet is to read a sequence from the request object, and write the resulting mass to the response object.
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Parameters:
      req - HttpServletRequest with the request
      res - HttpServletResponse with the response