summaryrefslogtreecommitdiff
path: root/Business Logic/trunk/src/org/cacert
diff options
context:
space:
mode:
authorMario Lipinski <Mario Lipinski@d4452222-2f33-11de-9270-010000000000>2009-04-28 02:26:50 +0000
committerMario Lipinski <Mario Lipinski@d4452222-2f33-11de-9270-010000000000>2009-04-28 02:26:50 +0000
commitd9bbf088b3bb6b4ef53d979ba9783dc2a974804b (patch)
treefdd87a0565c35e7467856b342f85f7c629347aa6 /Business Logic/trunk/src/org/cacert
parent31e16c78dfcc4e6ca483d0b09508ab37f6bf87fe (diff)
downloadcacert-birdshack-d9bbf088b3bb6b4ef53d979ba9783dc2a974804b.tar.gz
cacert-birdshack-d9bbf088b3bb6b4ef53d979ba9783dc2a974804b.tar.xz
cacert-birdshack-d9bbf088b3bb6b4ef53d979ba9783dc2a974804b.zip
first servlet stuff
git-svn-id: http://svn.cacert.cl/Software/BirdShack@24 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'Business Logic/trunk/src/org/cacert')
-rw-r--r--Business Logic/trunk/src/org/cacert/birdshack/bl/api/Controller.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/Business Logic/trunk/src/org/cacert/birdshack/bl/api/Controller.java b/Business Logic/trunk/src/org/cacert/birdshack/bl/api/Controller.java
new file mode 100644
index 0000000..6559828
--- /dev/null
+++ b/Business Logic/trunk/src/org/cacert/birdshack/bl/api/Controller.java
@@ -0,0 +1,48 @@
+/**
+ *
+ */
+package org.cacert.birdshack.bl.api;
+
+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 law
+ *
+ */
+public class Controller extends HttpServlet {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ *
+ */
+ public Controller() {
+ // TODO Auto-generated constructor stub
+ }
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
+ throws ServletException, IOException {
+ resp.setContentType("text/html");
+ PrintWriter out = resp.getWriter();
+ out.println("<html>");
+ out.println("<head>");
+ out.println("<title>Hello World!</title>");
+ out.println("</head>");
+ out.println("<body>");
+ out.println("<h1>Hello World!</h1>");
+ out.println("</body>");
+ out.println("</html>");
+ }
+
+
+}