public class ChatNavHandler extends SNACHandler
The ChatNav(igation) service does various things to keep chat alive. It provides room information, room searching and creating, as well as giving users the right ("permission") to use chat.
SNACHandler| Constructor and Description |
|---|
ChatNavHandler()
Family 0x0009.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createRoom(AIMSession sess,
AIMConnection conn,
String name,
int exchange)
Subtype 0x0008 - Create a chat room.
|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's.
|
void |
reqRights(AIMSession sess,
AIMConnection conn)
Subtype 0x0002 - Request chat rights.
|
getFamily, getVersion, setFamily, setVersionpublic void reqRights(AIMSession sess, AIMConnection conn) throws IOException
sess - the oscar sessionconn - the chat connectionIOException - if an error occurspublic void createRoom(AIMSession sess, AIMConnection conn, String name, int exchange) throws IOException
sess - the oscar sessionconn - the chat connectionname - the chat room nameexchange - the chat room exchangeIOException - if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws IOException
handleSNAC in class SNACHandlersess - the oscar sessionhandler - the handlerframe - the incoming framesnac - the incoming SNACbuffer - the incoming bufferIOException - if an error occurs