JML

net.sf.jml.impl
Class SimpleSwitchboard

java.lang.Object
  extended by net.sf.jml.impl.AbstractSwitchboard
      extended by net.sf.jml.impl.BasicSwitchboard
          extended by net.sf.jml.impl.SimpleSwitchboard
All Implemented Interfaces:
MsnSwitchboard

public class SimpleSwitchboard
extends BasicSwitchboard

Author:
Roger Chen

Method Summary
 void inviteContact(Email email)
          Inviate a contact to join the switchboard.
 void sendFile(File file)
          Send file.
 void sendText(String text)
          Send text message without format.
 
Methods inherited from class net.sf.jml.impl.BasicSwitchboard
addSessionListener, close, getConnection, getIncomingMessageChain, getOutgoingMessageChain, removeSessionListener, send, sendMessage, setAuthStr, setSessionId, start, toString
 
Methods inherited from class net.sf.jml.impl.AbstractSwitchboard
addContact, addFileTransfer, containContact, containContact, getActiveFileTransfers, getAllContacts, getAttachment, getMessenger, removeContact, removeFileTransfer, send, sendMessage, setAttachment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

inviteContact

public void inviteContact(Email email)
Description copied from interface: MsnSwitchboard
Inviate a contact to join the switchboard.

Parameters:
email - contact's email

sendText

public void sendText(String text)
Description copied from interface: MsnSwitchboard
Send text message without format.

Parameters:
text - text

sendFile

public void sendFile(File file)
              throws IllegalArgumentException,
                     IllegalStateException
Description copied from interface: MsnSwitchboard
Send file.

Parameters:
file - send file
Throws:
IllegalArgumentException - if file not existed
IllegalStateException - if no one or more than one contact in current switchboard

JML