org.xnap.plugin.overnet.net.msg
Class MessageHandler

java.lang.Object
  extended by org.xnap.plugin.overnet.net.msg.MessageHandler

public class MessageHandler
extends java.lang.Object


Constructor Summary
MessageHandler()
           
 
Method Summary
 void handle(OvernetMessage msg)
          Handles message itself first and then sends it to all listeners.
 void subscribe(byte type, MessageListener listener)
           
 void unsubscribe(byte type, MessageListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandler

public MessageHandler()
Method Detail

handle

public void handle(OvernetMessage msg)
Handles message itself first and then sends it to all listeners. A listener can consume the message to prevent other listeners from getting it.


subscribe

public void subscribe(byte type,
                      MessageListener listener)

unsubscribe

public void unsubscribe(byte type,
                        MessageListener listener)


Copyright © 2001-2005 XNap Team. All Rights Reserved.