From 0645ec66e1618ce4b52e56212c79196dd7c5c608 Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Sun, 20 Mar 2011 17:09:11 +0000 Subject: Begin migration to HttpCore request handler pattern. Delete protocol duplicates left over from last commit. --- src/uk/org/ury/server/ServerProtocol.java | 37 ------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/uk/org/ury/server/ServerProtocol.java (limited to 'src/uk/org/ury/server/ServerProtocol.java') diff --git a/src/uk/org/ury/server/ServerProtocol.java b/src/uk/org/ury/server/ServerProtocol.java deleted file mode 100644 index 92d2955..0000000 --- a/src/uk/org/ury/server/ServerProtocol.java +++ /dev/null @@ -1,37 +0,0 @@ -package uk.org.ury.server; - -import java.util.ArrayList; -import java.util.List; - -/** - * The BAPS server protocol (a minimal implementation of HTTP 1.1) handler. - * - * @author Matt Windsor - * - */ - -public class ServerProtocol -{ - public static final String GET_HEADER = "HTTP/1.1 200 OK\n"; - - public List buffer; - - - public - ServerProtocol () - { - buffer = new ArrayList (); - } - - public String - processInput (String string) - { - if (string.equals ("")) - { - System.out.println ("Bingo!"); - return "HTTP/1.1 200 OK\nConnection: Close\n\r\npoo\n\r\n"; - } - return ""; - } - -} -- cgit v1.2.3