cfa.vo.iris.interop
Class AbstractSedMessageHandler
java.lang.Object
org.astrogrid.samp.client.AbstractMessageHandler
cfa.vo.iris.interop.AbstractSedMessageHandler
- All Implemented Interfaces:
- org.astrogrid.samp.client.MessageHandler
public abstract class AbstractSedMessageHandler
- extends org.astrogrid.samp.client.AbstractMessageHandler
This convenience class can be used by clients that want to receive SEDs from the
SAMP hub. I abstracts all the protocol details.
You can extend this class by implementing the processSed method. The arguments of this method
are the Sed extracted from the message and its ID. The ID can be used by subsequent
messages that refer to this particular Sed.
Once the class has been instantiated it can be passed as a MessageHandler to a SAMPController instance
using the addMessageHandler method.
- Author:
- olaurino
Method Summary |
Map |
processCall(org.astrogrid.samp.client.HubConnection hc,
String string,
org.astrogrid.samp.Message msg)
|
abstract void |
processSed(cfa.vo.sedlib.Sed sed,
String sedId)
By implementing this method clients can access directly the Sed object and its ID. |
Methods inherited from class org.astrogrid.samp.client.AbstractMessageHandler |
createResponse, getSubscriptions, receiveCall, receiveNotification, setSubscriptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSedMessageHandler
public AbstractSedMessageHandler()
processCall
public Map processCall(org.astrogrid.samp.client.HubConnection hc,
String string,
org.astrogrid.samp.Message msg)
throws Exception
- Specified by:
processCall
in class org.astrogrid.samp.client.AbstractMessageHandler
- Throws:
Exception
processSed
public abstract void processSed(cfa.vo.sedlib.Sed sed,
String sedId)
- By implementing this method clients can access directly the Sed object and its ID.
This method is called each time the
- Parameters:
sed
- sedId
-
Copyright © 2013. All rights reserved.