|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levelonelabs.aim.AIMClient
Implements the AIM protocol
Field Summary |
Fields inherited from interface com.levelonelabs.aim.AIMSender |
DEFAULT_GROUP, DENY_ALL, DENY_SOME, PERMIT_ALL, PERMIT_BUDDIES, PERMIT_SOME |
Constructor Summary | |
AIMClient(java.lang.String name,
java.lang.String pass)
Constructor for the AIMClient object |
|
AIMClient(java.lang.String name,
java.lang.String pass,
java.lang.String info)
Constructor for the AIMClient object |
|
AIMClient(java.lang.String name,
java.lang.String pass,
java.lang.String info,
boolean autoAddUsers)
Constructor for the AIMClient object |
|
AIMClient(java.lang.String name,
java.lang.String pass,
java.lang.String info,
java.lang.String response,
boolean autoAddUsers)
Constructor for the AIMClient object |
Method Summary | |
void |
addAIMListener(AIMListener listener)
Register a listener to recieve aim events |
void |
addBuddies(java.util.List buddyList)
Convience method for adding multiple buddies |
void |
addBuddy(AIMBuddy buddy)
Add a single budy |
void |
banBuddy(AIMBuddy buddy)
tell aim to ignore a buddy |
void |
denyBuddy(AIMBuddy buddy)
Add a buddy to the denied list |
AIMBuddy |
getBuddy(java.lang.String buddyName)
Retrieve a buddy from the list |
java.util.Iterator |
getBuddyNames()
Get an iterator for all the current buddy names |
int |
getPermitMode()
Gets the permit mode that is set on the server. |
void |
permitBuddy(AIMBuddy buddy)
Add a buddy to the permitted list |
void |
removeBuddies(java.util.List buddyList)
Convience method for removing multiple buddies |
void |
removeBuddy(AIMBuddy buddy)
Remove a single budy |
void |
run()
Main processing method for the AIMClient object |
void |
sendMessage(AIMBuddy buddy,
java.lang.String text)
Send a message to a buddy |
void |
sendWarning(AIMBuddy buddy)
Warn a buddy |
void |
setAvailable()
Clear unvailable message |
void |
setPermitMode(int mode)
Sets the permit mode on the server. |
void |
setUnavailable(java.lang.String reason)
Set unvailable message |
void |
signOff()
Sign off from aim server |
void |
signOn()
Sign on to aim server |
static java.lang.String |
stripHTML(java.lang.String line)
Strip out HTML from a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AIMClient(java.lang.String name, java.lang.String pass, java.lang.String info, java.lang.String response, boolean autoAddUsers)
name
- pass
- info
- Description of the Parameterresponse
- what to say to non-users when they message the bot (if
autoaddUsers==false)autoAddUsers
- public AIMClient(java.lang.String name, java.lang.String pass, java.lang.String info, boolean autoAddUsers)
name
- pass
- info
- Description of the ParameterautoAddUsers
- public AIMClient(java.lang.String name, java.lang.String pass, java.lang.String info)
name
- pass
- info
- Description of the Parameterpublic AIMClient(java.lang.String name, java.lang.String pass)
name
- pass
- Method Detail |
public static java.lang.String stripHTML(java.lang.String line)
line
- * *
public AIMBuddy getBuddy(java.lang.String buddyName)
getBuddy
in interface AIMSender
buddyName
-
public java.util.Iterator getBuddyNames()
getBuddyNames
in interface AIMSender
public void signOn()
signOn
in interface AIMSender
public void signOff()
signOff
in interface AIMSender
public void run()
run
in interface java.lang.Runnable
public void addAIMListener(AIMListener listener)
addAIMListener
in interface AIMSender
listener
- The listenerpublic void sendMessage(AIMBuddy buddy, java.lang.String text)
sendMessage
in interface AIMSender
buddy
- text
- public void addBuddy(AIMBuddy buddy)
addBuddy
in interface AIMSender
buddy
- The buddy to addpublic void addBuddies(java.util.List buddyList)
addBuddies
in interface AIMSender
buddyList
- List of AIMBuddypublic void removeBuddy(AIMBuddy buddy)
removeBuddy
in interface AIMSender
buddy
- The buddy to addpublic void removeBuddies(java.util.List buddyList)
removeBuddies
in interface AIMSender
buddyList
- List of AIMBuddypublic void sendWarning(AIMBuddy buddy)
sendWarning
in interface AIMSender
buddy
- public void banBuddy(AIMBuddy buddy)
banBuddy
in interface AIMSender
buddy
- public void denyBuddy(AIMBuddy buddy)
denyBuddy
in interface AIMSender
buddy
- public void permitBuddy(AIMBuddy buddy)
permitBuddy
in interface AIMSender
buddy
- public int getPermitMode()
getPermitMode
in interface AIMSender
public void setPermitMode(int mode)
setPermitMode
in interface AIMSender
mode
- public void setAvailable()
setAvailable
in interface AIMSender
public void setUnavailable(java.lang.String reason)
setUnavailable
in interface AIMSender
reason
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |