|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ChatPlugin
Interface of Jerry Messenger plug-ins.
The plug-ins are used to extend Jerry Messenger functionality. The plug-ins should be
defined in jerry.xml configuration file:
<plugins><plugin class="classname"><param name="paramname" value="paramvalue" />....</plugin>.....</plugins>
classname - full class name of plug-in
paramname, paramvalue - key and value passed to plug-in init method.
Each of web chat creates a set of plug-ins instances and release them on closing.
String.equals(Object)| 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. |
| Method Detail |
|---|
void init(Chat chat,
JID visitor,
JID operator,
Map<String,String> configParams)
chat - 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 fileboolean toOperator(Packet packet)
packet - message packet
void toOperator(String message)
message - text of the message
void toOperator(String subject,
String message)
subject - subject of the messagemessage - text of the messageboolean toVisitor(Packet packet)
packet - message packet
void toVisitor(String message)
message - text of the messagevoid close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||