net.sf.dexterim.msn
Class MsnConversation

java.lang.Object
  extended bynet.sf.dexterim.core.AbstractConversation
      extended bynet.sf.dexterim.msn.MsnConversation
All Implemented Interfaces:
Conversation, MessageListener

public class MsnConversation
extends AbstractConversation
implements MessageListener

Author:
Christoph Walcher

Constructor Summary
MsnConversation(MsnConnection connection)
          Creates a new instance of MsnConversation
 
Method Summary
 void answer(SwitchBoardServer server, java.lang.String conversationID)
           
 void bind(SwitchBoardServer server)
          Binds Conversation to a specified SwitchboardServer.
 void close()
          Ends the Conversation and frees unused Resources
protected  int computeMessageLength(java.lang.String message)
          Description of the Method
protected  void connectionEstablished()
           
protected  void initIO(SwitchBoardServer server)
           
 void inviteContact(Contact contact)
          Sends a Message of the form CAL 2 name_123@hotmail.com to invite User name_123@hotmail.com to a chat session
 void join(Contact contact)
          Add contact to the conversation.
 void messageReceived(MessageEvent event)
           
 void open()
          Connects the Conversation object to the messenger network
 void sendMessage(java.lang.String message)
          Sends a Message in encoded in a String over the implements network.
 void sendTextMessage(java.lang.String message)
           
 void signIn(SwitchBoardServer server)
          Sends a Message of the form USR 1 example@passport.com 16925950.1016955577.17693 to sign in as creater to the new SwitchBoard
protected  void signInReceived()
           
protected  void stopIO()
           
 
Methods inherited from class net.sf.dexterim.core.AbstractConversation
addConversationListener, fireMessageReceived, removeConversationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsnConversation

public MsnConversation(MsnConnection connection)
Creates a new instance of MsnConversation

Method Detail

close

public void close()
Description copied from interface: Conversation
Ends the Conversation and frees unused Resources

Specified by:
close in interface Conversation

join

public void join(Contact contact)
Description copied from interface: Conversation
Add contact to the conversation.

Specified by:
join in interface Conversation
Parameters:
contact - The Contact object that should join the Conversation

open

public void open()
Description copied from interface: Conversation
Connects the Conversation object to the messenger network

Specified by:
open in interface Conversation

sendMessage

public void sendMessage(java.lang.String message)
Description copied from interface: Conversation
Sends a Message in encoded in a String over the implements network. It's in the responsibility of the implementing Class to encode the String message

Specified by:
sendMessage in interface Conversation

connectionEstablished

protected void connectionEstablished()

sendTextMessage

public void sendTextMessage(java.lang.String message)

computeMessageLength

protected int computeMessageLength(java.lang.String message)
Description of the Method

Parameters:
message - Description of the Parameter
Returns:
Description of the Return Value

bind

public void bind(SwitchBoardServer server)
Binds Conversation to a specified SwitchboardServer. This method physicaly connects this conversation instance to the server and opens the Conversation for message transmission.


answer

public void answer(SwitchBoardServer server,
                   java.lang.String conversationID)

signInReceived

protected void signInReceived()

signIn

public void signIn(SwitchBoardServer server)
Sends a Message of the form USR 1 example@passport.com 16925950.1016955577.17693 to sign in as creater to the new SwitchBoard


inviteContact

public void inviteContact(Contact contact)
Sends a Message of the form CAL 2 name_123@hotmail.com to invite User name_123@hotmail.com to a chat session


initIO

protected void initIO(SwitchBoardServer server)
               throws java.io.IOException
Throws:
java.io.IOException

stopIO

protected void stopIO()
               throws java.io.IOException
Throws:
java.io.IOException

messageReceived

public void messageReceived(MessageEvent event)
Specified by:
messageReceived in interface MessageListener


Copyright © 2003-2004 Dexter IM Team. All Rights Reserved.