public abstract class AbstractQueryHandler
extends java.lang.Object
Provider.runInitializersAfter()
,
QueryResponder.registerQueryHandler(String, AbstractQueryHandler)
Modifier | Constructor and Description |
---|---|
protected |
AbstractQueryHandler()
Constructor for this abstract superclass.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
handleQuery(Message mm)
Handle the passed in message and generate whatever appropriate response should be made.
|
protected static void |
transmitReply(Message mm,
java.lang.String answer)
Convenience method to help subclass implementations send responses to the requesting station.
|
protected AbstractQueryHandler()
public abstract void handleQuery(Message mm)
mm
- MessageMessage addressed explicitly to local station whose content begins with
one of the prefixes specified by the subclass.protected static void transmitReply(Message 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