|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object AntiSpam
Provides basic anti-spam functionality for chatrooms.
Field Summary | |
static int |
CAPS
Message is overwhelmingly upper case letters. |
static int |
FLOOD
Message is attempt to flood chatroom. |
static int |
REPEAT
Message is repeat of recent message. |
Constructor Summary | |
AntiSpam()
Construct a new anti-spam instance. |
Method Summary | |
int |
getViolations(String u,
String m)
Returns an integer of flags denoting which checks failed. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int REPEAT
public static final int FLOOD
public static final int CAPS
Constructor Detail |
public AntiSpam()
Method Detail |
public int getViolations(String u, String m)
Note: this method will extracted the plain text from a Yahoo richly formatted message automatically. There is no need to do this yourself.
u
- id of user who sent the messagem
- text of message (can be formatted)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |