net.sf.jml.impl
Class SimpleSwitchboard
java.lang.Object
net.sf.jml.impl.AbstractSwitchboard
net.sf.jml.impl.BasicSwitchboard
net.sf.jml.impl.SimpleSwitchboard
- All Implemented Interfaces:
- MsnSwitchboard
public class SimpleSwitchboard
- extends BasicSwitchboard
- Author:
- Roger Chen
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 |
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