org.walluck.oscar.handlers
Class ChatNavHandler

java.lang.Object
  extended by org.walluck.oscar.handlers.SNACHandler
      extended by org.walluck.oscar.handlers.ChatNavHandler

public class ChatNavHandler
extends SNACHandler

Family 0x000d - Handle ChatNav.

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.

Since:
1.0
Version:
1.0
Author:
David Walluck
See Also:
SNACHandler

Constructor Summary
ChatNavHandler()
          Family 0x0009.
 
Method Summary
 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.
 
Methods inherited from class org.walluck.oscar.handlers.SNACHandler
getFamily, getVersion, setFamily, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatNavHandler

public ChatNavHandler()
Family 0x0009.

Method Detail

reqRights

public void reqRights(AIMSession sess,
                      AIMConnection conn)
               throws IOException
Subtype 0x0002 - Request chat rights.

Parameters:
sess - the oscar session
conn - the chat connection
Throws:
IOException - if an error occurs

createRoom

public void createRoom(AIMSession sess,
                       AIMConnection conn,
                       String name,
                       int exchange)
                throws IOException
Subtype 0x0008 - Create a chat room.

Parameters:
sess - the oscar session
conn - the chat connection
name - the chat room name
exchange - the chat room exchange
Throws:
IOException - if an error occurs

handleSNAC

public void handleSNAC(AIMSession sess,
                       SNACHandler handler,
                       AIMFrame frame,
                       SNAC snac,
                       AIMInputStream buffer)
                throws IOException
Handles incoming SNAC's.

Specified by:
handleSNAC in class SNACHandler
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
buffer - the incoming buffer
Throws:
IOException - if an error occurs