cfa.vo.iris.interop
Class AbstractSedMessageHandler

java.lang.Object
  extended by org.astrogrid.samp.client.AbstractMessageHandler
      extended by 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

Constructor Summary
AbstractSedMessageHandler()
           
 
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
 

Constructor Detail

AbstractSedMessageHandler

public AbstractSedMessageHandler()
Method Detail

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.