|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMConnection
Represents a connection to an IM-Server.
| Method Summary | |
|---|---|
void |
addConnectionListener(IMConnectionListener listener)
|
void |
close()
Closes the connection (includes logout) and releases resources. |
boolean |
connect()
Establishes the connection and login. |
boolean |
isConnected()
Returns if the connection is established. |
void |
removeConnectionListener(IMConnectionListener listener)
|
void |
send(IMMessageTarget target,
java.lang.String text)
Sends a Message-Text to an IMMessageTarget (aka a User ;). |
void |
setPresence(IMPresence presence,
java.lang.String statusMessage)
Sets the current connection's presence to a protocol specific adaption of the given presence parameter. |
| Method Detail |
|---|
boolean connect()
true iff connection and login was successfulboolean isConnected()
void close()
void send(IMMessageTarget target,
java.lang.String text)
throws IMException
target - the target to send totext - the text to be sent
IMException
void setPresence(IMPresence presence,
java.lang.String statusMessage)
throws IMException
presence - the presence to setstatusMessage - status message which should be deployed (maybe ignored by some protocols)
IMException - encapsulated exception of underlying protocol/clientvoid addConnectionListener(IMConnectionListener listener)
void removeConnectionListener(IMConnectionListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||