|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.AIMSession
Everything starts with an AIM session.
Nested Class Summary | |
class |
AIMSession.SSIObject
This is for SSI support. |
Constructor Summary | |
AIMSession()
Creates a new AIM session. |
Method Summary | |
void |
addConn(AIMConnection conn)
Add a connection to this session. |
void |
deregisiterListener(int family,
int subtype,
Listener listener)
Remove a listener for this connection. |
java.lang.Object |
getAuxData()
Get the value of auxData. |
java.util.Vector |
getConnList()
Get the value of connList. |
java.util.ArrayList |
getEmailInfo()
Get the value of emailInfo. |
int |
getFlags()
Get the value of flags. |
SNACHandler |
getHandler(int family)
Get the handler for the given SNAC family. |
java.util.ArrayList |
getHandlers()
Get the value of handlers. |
java.util.Iterator |
getListeners(int family,
int subtype)
Get the connection listeners for the given SNAC family. |
LoginResponseInfo |
getLoginInfo()
Get the value of loginInfo. |
java.util.ArrayList |
getRendezvous()
Get the value of rendezvous. |
Rendezvous |
getRendezvous(int service)
Get the rendezvous for the given type. |
ScriptInterpreter |
getScriptInterpreter()
Get the script interpreter for this session. |
java.lang.String |
getSN()
Get the value of sn. |
AIMSession.SSIObject |
getSSI()
Get the value of ssi. |
java.util.Timer |
getTimer()
Get the timer for this session. |
Tool |
getTool(int family)
Get the tool for the given SNAC family. |
java.util.ArrayList |
getTools()
Get the value of tools. |
void |
init()
Call this once, after setting the screenname. |
boolean |
isIChat()
Return whether or not this is an iChat session. |
boolean |
isICQ()
Return whether or not this is an ICQ session. |
void |
kill()
Kills a session. |
ListenerEntry |
lookupListenerEntry(int family,
int subtype)
Look up a listener entry for this connection. |
ListenerEntry |
lookupListenerEntryCreate(int family,
int subtype)
Look up a listener entry for this connection. |
void |
registerHandlers()
Register all SNAC handlers for this session. |
void |
registerListener(int family,
int subtype,
Listener listener)
Add the given listener to the given listener entry family for this connection. |
void |
registerRendezous()
Register the rendezvous for this session. |
void |
registerTools()
Register the tools for this session. |
void |
remConn(AIMConnection conn)
Remove a connection from this session. |
void |
setAuxData(java.lang.Object auxData)
Set the value of auxData. |
void |
setEmailInfo(java.util.ArrayList emailInfo)
Set the value of emailInfo. |
void |
setFlags(int flags)
Set the value of flags. |
void |
setIChat(boolean iChat)
Set the value of iChat. |
void |
setICQ(boolean icq)
Set the value of icq. |
void |
setLoginInfo(LoginResponseInfo loginInfo)
Set the value of loginInfo. |
void |
setScriptInterpreter(ScriptInterpreter si)
Set the script interpreter for this session. |
void |
setSN(java.lang.String sn)
Set the value of sn. |
void |
setSSI(AIMSession.SSIObject ssi)
Set the value of ssi. |
void |
setTimer(java.util.Timer timer)
Set the timer for this session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AIMSession()
Method Detail |
public void init()
public void registerHandlers()
public SNACHandler getHandler(int family)
family
- the SNAC family
public java.util.ArrayList getHandlers()
public void registerTools()
public Tool getTool(int family)
family
- the SNAC family
public java.util.ArrayList getTools()
public void registerRendezous()
public Rendezvous getRendezvous(int service)
service
- the rendezvous service (capability constant)
public java.util.ArrayList getRendezvous()
public void setScriptInterpreter(ScriptInterpreter si)
si
- the scriptpublic ScriptInterpreter getScriptInterpreter()
public void setTimer(java.util.Timer timer)
timer
- the timerpublic java.util.Timer getTimer()
public void kill()
public java.lang.String getSN()
public void setSN(java.lang.String sn)
sn
- Value to assign to sn.public boolean isICQ()
public void setICQ(boolean icq)
icq
- Value to assign to icq.public boolean isIChat()
public void setIChat(boolean iChat)
iChat
- Value to assign to iChat.public void addConn(AIMConnection conn)
conn
- the connection to addpublic void remConn(AIMConnection conn)
conn
- the connection to removepublic java.util.Vector getConnList()
public int getFlags()
public void setFlags(int flags)
flags
- Value to assign to flags.public AIMSession.SSIObject getSSI()
public void setSSI(AIMSession.SSIObject ssi)
ssi
- Value to assign to ssi.public java.lang.Object getAuxData()
public void setAuxData(java.lang.Object auxData)
auxData
- Value to assign to auxData.public LoginResponseInfo getLoginInfo()
public void setLoginInfo(LoginResponseInfo loginInfo)
loginInfo
- Value to assign to loginInfo.public java.util.ArrayList getEmailInfo()
public void setEmailInfo(java.util.ArrayList emailInfo)
emailInfo
- Value to assign to emailInfo.public ListenerEntry lookupListenerEntry(int family, int subtype)
family
- the SNAC familysubtype
- the SNAC subtype
public ListenerEntry lookupListenerEntryCreate(int family, int subtype)
family
- the SNAC familysubtype
- the SNAC subtype
public void registerListener(int family, int subtype, Listener listener)
family
- the SNAC familysubtype
- the SNAC subtypelistener
- the SNAC listenerpublic void deregisiterListener(int family, int subtype, Listener listener)
family
- the SNAC familysubtype
- the SNAC subtypelistener
- the SNAC listenerpublic java.util.Iterator getListeners(int family, int subtype)
family
- the SNAC familysubtype
- the SNAC subtype
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |