From 2256831c5bd87d7702fd7a31784b6d297166c8f0 Mon Sep 17 00:00:00 2001 From: Michele Silva Date: Wed, 11 Jan 2012 16:47:53 -0200 Subject: [PATCH] Removed test servlet. --- .../org/ufcspa/simdecs/comunicacao/NewServlet.java | 96 -------------------- 1 files changed, 0 insertions(+), 96 deletions(-) delete mode 100644 src/java/org/ufcspa/simdecs/comunicacao/NewServlet.java diff --git a/src/java/org/ufcspa/simdecs/comunicacao/NewServlet.java b/src/java/org/ufcspa/simdecs/comunicacao/NewServlet.java deleted file mode 100644 index 5f599a0..0000000 --- a/src/java/org/ufcspa/simdecs/comunicacao/NewServlet.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package org.ufcspa.simdecs.comunicacao; - -import java.io.IOException; -import java.io.PrintWriter; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * - * @author pbarros - */ -public class NewServlet extends HttpServlet { - - /** - * Processes requests for both HTTP - * GET and - * POST methods. - * çljfsajflaskjflaskf - * - * asnas,lfnas,fmnsa - * - * - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - protected void processRequest(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - response.setContentType("text/html;charset=UTF-8"); - PrintWriter out = response.getWriter(); - try { - /* - * TODO output your page here. You may use following sample code. - */ - out.println(""); - out.println(""); - out.println("Servlet NewServlet"); - out.println(""); - out.println(""); - out.println("

Servlet NewServlet at " + request.getContextPath() + "

"); - out.println(""); - out.println(""); - } finally { - out.close(); - } - } - - // - /** - * Handles the HTTP - * GET method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - processRequest(request, response); - } - - /** - * Handles the HTTP - * POST method. - * - * @param request servlet request - * @param response servlet response - * @throws ServletException if a servlet-specific error occurs - * @throws IOException if an I/O error occurs - */ - @Override - protected void doPost(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - processRequest(request, response); - } - - /** - * Returns a short description of the servlet. - * - * @return a String containing servlet description - */ - @Override - public String getServletInfo() { - return "Short description"; - }// -} -- 1.7.6.4