public abstract class AbstractQueryHandler
extends java.lang.Object
| Constructor and Description |
|---|
AbstractQueryHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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