fi.hut.tml.xsmiles.comm.session
Interface Messaging

All Known Implementing Classes:
JxtaSession, SipSession

public interface Messaging

The basic messaging interface for COMM API. Notice that the messaging is always in a session context - the comm session needs to be established before messages can be sent.

Author:
ssundell

Method Summary
 void addMessageListener(MessageListener listener)
          Add a listerner to receive messages in a session.
 void removeMessageListener(MessageListener listener)
           
 void sendMessage(Message message)
          Send an XML formatted message.
 

Method Detail

sendMessage

public void sendMessage(Message message)
Send an XML formatted message.


addMessageListener

public void addMessageListener(MessageListener listener)
Add a listerner to receive messages in a session.

Parameters:
listener -

removeMessageListener

public void removeMessageListener(MessageListener listener)


X-Smiles 1.2