com.zerjio.JIRC
Class SimpleReplyMsgListener

java.lang.Object
  extended bycom.zerjio.JIRC.SimpleReplyMsgListener
All Implemented Interfaces:
ReplyMsgListener

public class SimpleReplyMsgListener
extends java.lang.Object
implements ReplyMsgListener

A basic ReplyMsgListener that prints the information available about every ReplyMessage that is received.


Constructor Summary
SimpleReplyMsgListener()
           
 
Method Summary
 boolean listensTo(java.lang.String replyCode)
          Returns true to listen to every reply message.
 void replyMsgReceived(ReplyMessage msg)
          Prints out all information known about a particular ReplyMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReplyMsgListener

public SimpleReplyMsgListener()
Method Detail

listensTo

public boolean listensTo(java.lang.String replyCode)
Returns true to listen to every reply message.

Specified by:
listensTo in interface ReplyMsgListener
Parameters:
replyCode - A reply code (it doesn't matter what code, returns always true)
Returns:
true

replyMsgReceived

public void replyMsgReceived(ReplyMessage msg)
Prints out all information known about a particular ReplyMessage.

Specified by:
replyMsgReceived in interface ReplyMsgListener
Parameters:
msg - The reply message to print its information.
See Also:
markAsUsed, mustBeDiscarded, listenTo(String replyCode)