From: Steve F. <sm...@us...> - 2001-08-11 20:42:08
|
Update of /cvsroot/mockobjects/mockobjects-java/src/examples/com/mockobjects/examples/calcserver In directory usw-pr-cvs1:/tmp/cvs-serv1930/examples/com/mockobjects/examples/calcserver Modified Files: CalculatorServlet.java Log Message: more examples, plus some tidy up Index: CalculatorServlet.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/examples/com/mockobjects/examples/calcserver/CalculatorServlet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CalculatorServlet.java 2001/07/29 19:50:25 1.1 --- CalculatorServlet.java 2001/08/11 20:42:05 1.2 *************** *** 14,52 **** ! /** ! * Process incoming HTTP GET requests ! * ! * @param request Object that encapsulates the request to the servlet ! * @param response Object that encapsulates the response from the servlet ! */ ! public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { ! performTask(request, response); - } - - - /** - * Process incoming HTTP POST requests - * - * @param request Object that encapsulates the request to the servlet - * @param response Object that encapsulates the response from the servlet - */ - public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { performTask(request, response); - } - - /** - * Returns the servlet info string. - */ public String getServletInfo() { - return super.getServletInfo(); - } - public void init() throws ServletException { --- 14,28 ---- ! public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { performTask(request, response); } + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { performTask(request, response); } public String getServletInfo() { return super.getServletInfo(); } public void init() throws ServletException { |