|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.pluginapi.AbstractQueryHandler
public abstract class AbstractQueryHandler
This class defines some infrastructure for convenient creation of pluggable query handlers for YAAC. New query codes may be defined by plugins and registered with the QueryResponder.
Provider.runInitializersAfter()
,
QueryResponder.registerQueryHandler(String, AbstractQueryHandler)
Constructor Summary | |
---|---|
AbstractQueryHandler()
|
Method Summary | |
---|---|
abstract void |
handleQuery(MessageMessage mm)
Handle the passed in message and generate whatever appropriate response should be made. |
protected static void |
transmitReply(MessageMessage mm,
java.lang.String answer)
Convenience method to help subclass implementations send responses to the requesting station. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractQueryHandler()
Method Detail |
---|
public abstract void handleQuery(MessageMessage mm)
mm
- MessageMessage addressed explicitly to local station whose content begins with
one of the prefixes specified by the subclass.protected static void transmitReply(MessageMessage mm, java.lang.String answer)
mm
- the originating MessageMessage that caused the query to be processedanswer
- the text string to embed in a response MessageMessage to send back to the requester
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |