com.kenmccrary.jtella
Class MessageReceiverAdapter

java.lang.Object
  |
  +--com.kenmccrary.jtella.MessageReceiverAdapter
All Implemented Interfaces:
MessageReceiver

public abstract class MessageReceiverAdapter
extends java.lang.Object
implements MessageReceiver

An adapter for the MessageReceiver, provides empty implementations of message receive methods


Constructor Summary
MessageReceiverAdapter()
           
 
Method Summary
 void receivePush(PushMessage pushMessage)
          Implement to receive a push request
 void receiveSearch(SearchMessage searchMessage)
          Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently, the default implementation does nothing
 void receiveSearchReply(SearchReplyMessage searchReplyMessage)
          Implement to receive a message reply, the default implementation does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageReceiverAdapter

public MessageReceiverAdapter()
Method Detail

receiveSearchReply

public void receiveSearchReply(SearchReplyMessage searchReplyMessage)
Implement to receive a message reply, the default implementation does nothing
Specified by:
receiveSearchReply in interface MessageReceiver
Parameters:
searchResult - search reply

receiveSearch

public void receiveSearch(SearchMessage searchMessage)
Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently, the default implementation does nothing
Specified by:
receiveSearch in interface MessageReceiver
Following copied from interface: com.kenmccrary.jtella.MessageReceiver
Parameters:
searchMessage - search message

receivePush

public void receivePush(PushMessage pushMessage)
Implement to receive a push request
Specified by:
receivePush in interface MessageReceiver
Parameters:
pushMessage - request to push a file