|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.AIMSession
public class 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. |
Object |
getAuxData()
Get the value of auxData. |
Vector |
getConnList()
Get the value of connList. |
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. |
ArrayList |
getHandlers()
Get the value of handlers. |
Iterator |
getListeners(int family,
int subtype)
Get the connection listeners for the given SNAC family. |
LoginResponseInfo |
getLoginInfo()
Get the value of loginInfo. |
String |
getPassword()
Get the password set for this session. |
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. |
String |
getSN()
Get the value of sn. |
AIMSession.SSIObject |
getSSI()
Get the value of ssi. |
Timer |
getTimer()
Get the timer for this session. |
Tool |
getTool(int family)
Get the tool for the given SNAC family. |
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(Object auxData)
Set the value of auxData. |
void |
setEmailInfo(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 |
setPassword(String password)
Set a password for this session. |
void |
setScriptInterpreter(ScriptInterpreter si)
Set the script interpreter for this session. |
void |
setSN(String sn)
Set the value of sn. |
void |
setSSI(AIMSession.SSIObject ssi)
Set the value of ssi. |
void |
setTimer(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 ArrayList getHandlers()
public void registerTools()
public Tool getTool(int family)
family
- the SNAC family
public ArrayList getTools()
public void registerRendezous()
public Rendezvous getRendezvous(int service)
service
- the rendezvous service (capability constant)
public ArrayList getRendezvous()
public void setScriptInterpreter(ScriptInterpreter si)
si
- the scriptpublic ScriptInterpreter getScriptInterpreter()
public void setTimer(Timer timer)
timer
- the timerpublic Timer getTimer()
public void kill()
public String getSN()
public void setSN(String sn)
sn
- Value to assign to sn.public String getPassword()
public void setPassword(String password)
password
- Da passwordpublic 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 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 Object getAuxData()
public void setAuxData(Object auxData)
auxData
- Value to assign to auxData.public LoginResponseInfo getLoginInfo()
public void setLoginInfo(LoginResponseInfo loginInfo)
loginInfo
- Value to assign to loginInfo.public ArrayList getEmailInfo()
public void setEmailInfo(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 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 |