Package org.astrogrid.samp.hub
Class PingMessageHandler
- java.lang.Object
-
- org.astrogrid.samp.client.AbstractMessageHandler
-
- org.astrogrid.samp.hub.PingMessageHandler
-
- All Implemented Interfaces:
MessageHandler
class PingMessageHandler extends AbstractMessageHandler
Implements samp.app.ping MType.- Since:
- 21 Nov 2011
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description PingMessageHandler()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map
processCall(HubConnection conn, java.lang.String senderId, Message msg)
Implements message processing.-
Methods inherited from class org.astrogrid.samp.client.AbstractMessageHandler
createResponse, getSubscriptions, receiveCall, receiveNotification, setSubscriptions
-
-
-
-
Method Detail
-
processCall
public java.util.Map processCall(HubConnection conn, java.lang.String senderId, Message msg)
Description copied from class:AbstractMessageHandler
Implements message processing. Implementations should normally return a map which contains thesamp.result
part of the call response, that is the MType-specific return value name->value map. As a special case, returning null is equivalent to returning an empty map. However, ifAbstractMessageHandler.createResponse(java.util.Map)
is overridden, the return value semantics may be different.- Specified by:
processCall
in classAbstractMessageHandler
- Parameters:
conn
- hub connectionsenderId
- public ID of sender clientmsg
- message with MType this handler is subscribed to- Returns:
- result of handling this message; exact semantics determined
by
createResponse
implementation
-
-