|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageFilter
The MessageFilter interface is one of the interfaces extension
writers use to add functionality to Spark.
String currentBody = message.getBody(); currentBody = removeAllBadWords(currentBody); message.setBody(currentBody);
| Method Summary | |
|---|---|
void |
filterIncoming(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
Updates the body of an incoming message. |
void |
filterOutgoing(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
Update the body of an outgoing message. |
| Method Detail |
|---|
void filterOutgoing(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
message - the message to update.
void filterIncoming(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
message - the message to update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||