|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.responder.AIMResponder
public class AIMResponder
Constructor Summary | |
---|---|
AIMResponder()
|
Method Summary | |
---|---|
java.lang.String |
append(java.lang.String input,
java.lang.String response,
java.lang.String appendTo)
Response by a Responder is considered an
"append" to some previous string. |
void |
log(java.lang.String input,
java.lang.String reply,
java.lang.String hostname,
java.lang.String userid,
java.lang.String botid)
Logs an input/response pair to the appropriate place. |
java.lang.String |
postprocess(java.lang.String reply)
Postprocesses a message from a bot as appropriate for a given channel. |
java.lang.String |
preprocess(java.lang.String input,
java.lang.String hostname)
Preprocesses a message from a bot as appropriate for a given channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AIMResponder()
Method Detail |
---|
public java.lang.String preprocess(java.lang.String input, java.lang.String hostname)
Responder
Preprocesses a message from a bot as appropriate for a given channel.
For some channels, this may involve doing substitutions on the message; for some channels this may mean formatting the message in a particular way, etc.
preprocess
in interface Responder
input
- the message to be formattedhostname
- the name of the host that is generating the message
public java.lang.String append(java.lang.String input, java.lang.String response, java.lang.String appendTo)
Responder
Response by a Responder
is considered an
"append" to some previous string. That string
might be some form of the previous exchange, or it might
be nothing.
append
in interface Responder
input
- an input from the clientresponse
- a reply from the botappendTo
- the string to which the client of the
Responder
may expect the reply to be appended
Responder
has decided to modify itpublic void log(java.lang.String input, java.lang.String reply, java.lang.String hostname, java.lang.String userid, java.lang.String botid)
Responder
log
in interface Responder
input
- the client's inputreply
- the bot's responsehostname
- the name of the hostpublic java.lang.String postprocess(java.lang.String reply)
Responder
Postprocesses a message from a bot as appropriate for a given channel.
For some channels, this may involve doing substitutions on the message; for some channels this may mean formatting the message in a particular way, etc.
postprocess
in interface Responder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |