First working code
[proteocache.git] / server / compbio / listeners / DetailList.java
diff --git a/server/compbio/listeners/DetailList.java b/server/compbio/listeners/DetailList.java
new file mode 100644 (file)
index 0000000..ee3b260
--- /dev/null
@@ -0,0 +1,49 @@
+package compbio.listeners;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import compbio.cassandra.*;
+import compbio.statistic.StatisticsProt;
+
+/**
+ * Servlet implementation class DetailList
+ */
+@WebServlet("/DetailList")
+public class DetailList extends HttpServlet {
+       private static final long serialVersionUID = 1L;
+
+       /**
+        * @see HttpServlet#HttpServlet()
+        */
+
+       /**
+        * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
+        *      response)
+        */
+       protected void doGet(HttpServletRequest request,
+                       HttpServletResponse response) throws ServletException, IOException {
+               List<DataBase> result;
+               String date1 = request.getParameter("data1");
+               String date2 = request.getParameter("data2");
+               StatisticsProt sp = new StatisticsProt();
+               // result = sp.readDetail(date1, date2);
+       }
+
+       /**
+        * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
+        *      response)
+        */
+       protected void doPost(HttpServletRequest request,
+                       HttpServletResponse response) throws ServletException, IOException {
+               // TODO Auto-generated method stub
+       }
+
+}