org.walluck.oscar.handlers
Class TranslateHandler

java.lang.Object
  extended byorg.walluck.oscar.handlers.SNACHandler
      extended byorg.walluck.oscar.handlers.TranslateHandler

public class TranslateHandler
extends SNACHandler

Family 0x000c - Translation.

I have no idea why this group was issued. I have never seen anything that uses it. From what I remember, the last time I tried to poke at the server with this group, it whined about not supporting it.

But we advertise it anyway, because its fun.

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

Constructor Summary
TranslateHandler()
          Family 0x000c.
 
Method Summary
 void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer)
          Handles incoming SNAC's.
 void translateRequest(AIMSession sess, AIMConnection conn, java.util.ArrayList urls)
          Subtype 0x0002 - Request a translation.
 
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

TranslateHandler

public TranslateHandler()
Family 0x000c.

Method Detail

translateRequest

public void translateRequest(AIMSession sess,
                             AIMConnection conn,
                             java.util.ArrayList urls)
                      throws java.io.IOException
Subtype 0x0002 - Request a translation.

Parameters:
sess - the oscar session
conn - the bos connection for this session
urls - a vector of URL's to translate
Throws:
java.io.IOException - if an error occurs

handleSNAC

public void handleSNAC(AIMSession sess,
                       SNACHandler handler,
                       AIMFrame frame,
                       SNAC snac,
                       AIMInputStream buffer)
                throws java.io.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:
java.io.IOException - if an error occurs