|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gimec.msnj.Connection
The Connection class is the heart of library. This is where you login, send messages, etc.
Constructor Summary | |
Connection()
|
Method Summary | |
void |
addContact(java.lang.String handle)
Add the specified user to the forward list. |
void |
addListener(ConnectionListener listener)
Add a listener to this list of listeners. |
void |
allowContact(java.lang.String handle)
Add the specified user to the allow list. |
void |
blockContact(java.lang.String handle)
Add the specified user to the block list. |
void |
changeState(UserState state)
Change the user's state. |
void |
endChat(java.lang.String handle)
Close the Connection to the specified user. |
java.util.List |
getAllowList()
Returns a copy of the allow list. |
java.util.List |
getBlockList()
Returns a copy of the block list. |
java.lang.String |
getCommonName()
|
java.util.List |
getForwardList()
Returns a copy of the forward list. |
java.lang.String |
getHandle()
|
java.util.List |
getReverseList()
Returns a copy of the reverse list. |
UserState |
getState()
|
void |
login(java.lang.String handle,
java.lang.String passwd)
Logs in to the default server. |
void |
login(java.lang.String handle,
java.lang.String passwd,
java.lang.String host)
Logs into the specified server. |
void |
login(java.lang.String handle,
java.lang.String passwd,
java.lang.String host,
int port)
Logs into the specified server. |
void |
logout()
Log out. |
void |
removeContact(java.lang.String handle)
Remove the specified user from a forward list. |
void |
removeListener(ConnectionListener listener)
Remove a listener from the list of listeners. |
void |
sendMessage(java.lang.String handle,
MimeMessage message)
Send a message to the specified user. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Connection()
Method Detail |
public void login(java.lang.String handle, java.lang.String passwd) throws ConnectionException
public void login(java.lang.String handle, java.lang.String passwd, java.lang.String host) throws ConnectionException
public void login(java.lang.String handle, java.lang.String passwd, java.lang.String host, int port) throws ConnectionException
public void sendMessage(java.lang.String handle, MimeMessage message) throws ConnectionException
public void addContact(java.lang.String handle) throws ConnectionException
public void removeContact(java.lang.String handle) throws ConnectionException
public void allowContact(java.lang.String handle) throws ConnectionException
public void blockContact(java.lang.String handle) throws ConnectionException
public void endChat(java.lang.String handle) throws ConnectionException
public void logout() throws ConnectionException
public void changeState(UserState state) throws ConnectionException
public java.util.List getForwardList()
public java.util.List getReverseList()
public java.util.List getAllowList()
public java.util.List getBlockList()
public java.lang.String getHandle()
public java.lang.String getCommonName()
public UserState getState()
public void addListener(ConnectionListener listener)
public void removeListener(ConnectionListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |