com.compomics.util.general.servlet
Class MassCalcServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.compomics.util.general.servlet.MassCalcServlet
All Implemented Interfaces:
java.io.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:
MassCalc, Serialized Form

Constructor Summary
MassCalcServlet()
           
 
Method Summary
 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, 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

MassCalcServlet

public MassCalcServlet()
Method Detail

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


Copyright © 2013. All Rights Reserved.