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.
It also generates its own submission form upon first contact.
- Author:
- Lennart Martens
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Override of parent class, implemented here as a simple forward to the 'doPost' method.voiddoPost(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, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
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:
doGetin classjavax.servlet.http.HttpServlet- Parameters:
req- HttpServletRequest with the requestres- 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:
doPostin classjavax.servlet.http.HttpServlet- Parameters:
req- HttpServletRequest with the requestres- HttpServletResponse with the response
-