public class ODirHandler extends SNACHandler
Used for searching for other AIM users by email address, name, location, commmon interests, and a few other similar things.
SNACHandler
Constructor and Description |
---|
ODirHandler()
Family 0x000f.
|
Modifier and Type | Method and Description |
---|---|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's.
|
void |
reqInterests(AIMSession sess)
Subtype 0x0004 - Request list of interests.
|
void |
searchDirectoryInfo(AIMSession sess,
String region,
ODirInfo info)
Subtype 0x0002 - Submit a User Search Request.
|
void |
searchEmail(AIMSession sess,
String region,
String email)
Subtype 0x0002 - Submit a User Search Request.
|
void |
searchInterests(AIMSession sess,
String region,
ArrayList interests)
Subtype 0x0002 - Submit a User Search Request.
|
getFamily, getVersion, setFamily, setVersion
public void searchEmail(AIMSession sess, String region, String email) throws IOException
Search for an AIM screen name based on their email address.
sess
- the oscar sessionregion
- should be "us-ascii" unless you know what you're
doingemail
- the email address you want to search forIOException
- if an error occurspublic void searchDirectoryInfo(AIMSession sess, String region, ODirInfo info) throws IOException
Search for an AIM screen name based on various info about the person.
sess
- the oscar sessionregion
- should be "us-ascii" unless you know what you're
doinginfo
- directory infoIOException
- if an error occurspublic void searchInterests(AIMSession sess, String region, ArrayList interests) throws IOException
Search for a user by interests (5 max, but that may be a soft (client) limit.
sess
- the oscar sessionregion
- should be "us-ascii" unless you know what you're
doinginterests
- the interestsIOException
- if an error occurspublic void reqInterests(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming bufferIOException
- if an error occurs