|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.multisoftgroup.jerry.webchat.plugin.ChatLogPlugin
public class ChatLogPlugin
This Jerry Messenger plug-in creates a log file for each of web chat.
Configuration parameters: path - path to log directory.
| Constructor Summary | |
|---|---|
ChatLogPlugin()
|
|
| Method Summary | |
|---|---|
void |
close()
Called on closing chat. |
void |
init(Chat chat,
JID visitor,
JID operator,
Map<String,String> configParams)
Called for the plug-in initializaion. |
boolean |
toOperator(Packet packet)
Called before the message packet is sent to the operator. |
void |
toOperator(String message)
Called before the message is sent to the operator. |
void |
toOperator(String subject,
String message)
Called before sending the offline message to the operator. |
boolean |
toVisitor(Packet packet)
Called before the message packet is sent to the web visitor. |
void |
toVisitor(String message)
Called before the message is sent to the web visitor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatLogPlugin()
| Method Detail |
|---|
public void init(Chat chat,
JID visitor,
JID operator,
Map<String,String> configParams)
ChatPlugin
init in interface ChatPluginchat - Chat which creates this plug-in instancevisitor - jabber address of web visitoroperator - jabber address of operatorconfigParams - map of the plug-in parameters (name, value) passed from jerry.xml config filepublic void toOperator(String message)
ChatPlugin
toOperator in interface ChatPluginmessage - text of the message
public void toOperator(String subject,
String message)
ChatPlugin
toOperator in interface ChatPluginsubject - subject of the messagemessage - text of the messagepublic boolean toOperator(Packet packet)
ChatPlugin
toOperator in interface ChatPluginpacket - message packet
public boolean toVisitor(Packet packet)
ChatPlugin
toVisitor in interface ChatPluginpacket - message packet
public void toVisitor(String message)
ChatPlugin
toVisitor in interface ChatPluginmessage - text of the messagepublic void close()
ChatPlugin
close in interface ChatPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||