diff options
Diffstat (limited to 'src/uk/org/ury/server/ServerProtocol.java')
-rw-r--r-- | src/uk/org/ury/server/ServerProtocol.java | 37 |
1 files changed, 0 insertions, 37 deletions
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<String> buffer; - - - public - ServerProtocol () - { - buffer = new ArrayList<String> (); - } - - public String - processInput (String string) - { - if (string.equals ("")) - { - System.out.println ("Bingo!"); - return "HTTP/1.1 200 OK\nConnection: Close\n\r\n<html><head></head><body>poo</body></html>\n\r\n"; - } - return ""; - } - -} |