01: // MuxProtocolHandler.java
02: // $Id: MuxProtocolHandler.java,v 1.2 1998/01/22 14:31:29 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.mux;
07:
08: import java.io.IOException;
09:
10: /**
11: * A proposed base class for protocol handlers.
12: * This base class is to be used in conjunction with the default
13: * Mux stream handler. You are free to redefine another stream handler
14: * and use your own protocol handler interface.
15: * @see SampleMuxHandler
16: */
17:
18: public interface MuxProtocolHandler {
19:
20: /**
21: * Start speaking the protocol you handle on that session.
22: * Feel free to start a thread, or whatever is needed.
23: * @param session The session devoted to speak your protocol.
24: */
25:
26: abstract public void initialize(MuxSession session)
27: throws IOException;
28:
29: }
|