|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jml.impl.AbstractMessenger
net.sf.jml.impl.BasicMessenger
public abstract class BasicMessenger
basic MsnMessenger implement, communication with MSN DS/NS
| Constructor Summary | |
|---|---|
BasicMessenger(Email email,
String password)
|
|
| Method Summary | |
|---|---|
void |
addSessionListener(net.sf.cindy.SessionListener listener)
|
MsnSwitchboard[] |
getActiveSwitchboards()
Get all active MsnSwitchboard. |
MsnConnection |
getConnection()
Get current connection information. |
MsnContactList |
getContactList()
Get contact list. |
MsnMessageChain |
getIncomingMessageChain()
Get the incoming message chain. |
MsnMessageChain |
getOutgoingMessageChain()
Get the outgoing message chain. |
MsnOwner |
getOwner()
Get current user. |
void |
login()
Login. |
void |
login(String ip,
int port)
|
void |
logout()
Logout. |
MsnSwitchboard |
newSwitchboard(String ip,
int port,
boolean createdByOwner,
String authStr,
int sessionId,
Object attachment)
Start a new switchboard use the given infomation. |
void |
removeSessionListener(net.sf.cindy.SessionListener listener)
|
boolean |
send(MsnOutgoingMessage message,
boolean block)
Send a message to DS/NS server. |
void |
sendText(Email email,
String text)
Send text message to someone without format. |
void |
setActualMsnProtocol(MsnProtocol protocol)
Sets the actual version of the protocol used. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.jml.MsnMessenger |
|---|
addFriend, addGroup, blockFriend, copyFriend, moveFriend, newSwitchboard, removeFriend, removeFriend, removeGroup, renameFriend, renameGroup, unblockFriend |
| Constructor Detail |
|---|
public BasicMessenger(Email email,
String password)
| Method Detail |
|---|
public MsnOwner getOwner()
MsnMessenger
public MsnContactList getContactList()
MsnMessenger
public MsnConnection getConnection()
MsnMessenger
public void login()
MsnMessenger
public void logout()
MsnMessenger
public boolean send(MsnOutgoingMessage message,
boolean block)
MsnMessenger
message - MsnOutgoingMessageblock - is block
public MsnSwitchboard[] getActiveSwitchboards()
MsnMessenger
public MsnMessageChain getIncomingMessageChain()
MsnMessenger
public MsnMessageChain getOutgoingMessageChain()
MsnMessenger
public void login(String ip,
int port)
public void setActualMsnProtocol(MsnProtocol protocol)
AbstractMessenger
setActualMsnProtocol in class AbstractMessengerprotocol - Instance of the protocol version used.public void addSessionListener(net.sf.cindy.SessionListener listener)
public void removeSessionListener(net.sf.cindy.SessionListener listener)
public String toString()
toString in class Object
public void sendText(Email email,
String text)
MsnMessenger
email - emailtext - text
public MsnSwitchboard newSwitchboard(String ip,
int port,
boolean createdByOwner,
String authStr,
int sessionId,
Object attachment)
ip - connect ipport - connect portcreatedByOwner - is this switchboard created by ownerauthStr - switchboard authStrsessionId - switchboard session idattachment - attachment
|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||