public class AdminHandler extends SNACHandler
Used for stuff like changing the formating of your screen name, changing your email address, requesting an account confirmation email, getting account info.
SNACHandler
Constructor and Description |
---|
AdminHandler()
Family 0x0007
|
Modifier and Type | Method and Description |
---|---|
void |
changePassword(AIMSession sess,
AIMConnection conn,
String newPw,
String curPw)
Subtype 0x0004 - Change password.
|
void |
getInfo(AIMSession sess,
AIMConnection conn,
int info)
Subtype 0x0002 - Request a bit of account info.
|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's.
|
void |
reqConfirm(AIMSession sess,
AIMConnection conn)
Subtype 0x0006 - Request account confirmation.
|
void |
setEmail(AIMSession sess,
AIMConnection conn,
String newEmail)
Subtype 0x0004 - Change email address.
|
void |
setNick(AIMSession sess,
AIMConnection conn,
String newNick)
Subtype 0x0004 - Set screenname formatting.
|
getFamily, getVersion, setFamily, setVersion
public void getInfo(AIMSession sess, AIMConnection conn, int info) throws IOException
sess
- the oscar sessionconn
- the bos connection for this sessioninfo
- the type of info to requestIOException
- if an error occurspublic void setNick(AIMSession sess, AIMConnection conn, String newNick) throws IOException
sess
- the oscar sesionconn
- the bos connection for this sessionnewNick
- the new nickIOException
- if an error occurspublic void changePassword(AIMSession sess, AIMConnection conn, String newPw, String curPw) throws IOException
sess
- the oscar sesionconn
- the bos connection for this sessionnewPw
- the new passwordcurPw
- the current passwordIOException
- if an error occurspublic void setEmail(AIMSession sess, AIMConnection conn, String newEmail) throws IOException
sess
- the oscar sessionconn
- the bos connection for this sessionnewEmail
- the new email addressIOException
- if an error occurspublic void reqConfirm(AIMSession sess, AIMConnection conn) throws IOException
sess
- the oscar sessionconn
- the bos connection for this 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