Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jtegServer
Class Protocol  view Protocol download Protocol.java

java.lang.Object
  extended byorg.zazof.jtegServer.Protocol
Direct Known Subclasses:
ProtocolVersion3

public class Protocol
extends java.lang.Object

This class defines a protocol as a set of MessageHandler objects


Field Summary
private  java.util.Hashtable $mhs
           
(package private) static org.apache.log4j.Category log
           
 
Constructor Summary
Protocol()
           
 
Method Summary
 void addMessageHandler(java.lang.String messageID, MessageHandler mh)
          adds a MessageHandler to this protocol.
(package private)  void handle(Message m)
          processes the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$mhs

private java.util.Hashtable $mhs

log

static org.apache.log4j.Category log
Constructor Detail

Protocol

public Protocol()
Method Detail

addMessageHandler

public void addMessageHandler(java.lang.String messageID,
                              MessageHandler mh)
adds a MessageHandler to this protocol.


handle

void handle(Message m)
processes the message