Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / src / org / w3c / www / mux / MuxProtocolHandler.java
diff --git a/JMCR-Stable/real-world application/jigsaw/src/org/w3c/www/mux/MuxProtocolHandler.java b/JMCR-Stable/real-world application/jigsaw/src/org/w3c/www/mux/MuxProtocolHandler.java
new file mode 100644 (file)
index 0000000..868a382
--- /dev/null
@@ -0,0 +1,31 @@
+// MuxProtocolHandler.java\r
+// $Id: MuxProtocolHandler.java,v 1.1 2010/06/15 12:26:34 smhuang Exp $\r
+// (c) COPYRIGHT MIT and INRIA, 1996.\r
+// Please first read the full copyright statement in file COPYRIGHT.html\r
+\r
+package org.w3c.www.mux;\r
+\r
+import java.io.IOException;\r
+\r
+/**\r
+ * A proposed base class for protocol handlers.\r
+ * This base class is to be used in conjunction with the default \r
+ * Mux stream handler. You are free to redefine another stream handler\r
+ * and use your own protocol handler interface.\r
+ * @see SampleMuxHandler\r
+ */\r
+\r
+public interface MuxProtocolHandler {\r
+\r
+    /**\r
+     * Start speaking the protocol you handle on that session.\r
+     * Feel free to start a thread, or whatever is needed.\r
+     * @param session The session devoted to speak your protocol.\r
+     */\r
+\r
+    abstract public void initialize(MuxSession session) \r
+       throws IOException;\r
+\r
+}\r
+\r
+\r