org.globus.ogsa.impl.core.notification.framework.jms.utils
Class JMSFormatters

java.lang.Object
  extended byorg.globus.ogsa.impl.core.notification.framework.jms.utils.JMSFormatters

public class JMSFormatters
extends java.lang.Object

The JMSFormattters class. This class is used to format the Messges being sent to the Notification Topics.


Constructor Summary
JMSFormatters()
           
 
Method Summary
static TextMessage formatCancelSubMessage(TextMessage cancelSubMsg, java.lang.String aSubscriptionID, java.lang.String aSubscriptionExpressionType)
          Format a cancel subsription message This method builds the Cancel Subscription Message.
static TextMessage formatNotifyMessage(TextMessage notifyMessage, java.lang.String subscriptionSink, java.lang.String subscriptionID, java.lang.String queryEvalMessage)
          Build and format the the notify message
static TextMessage formatRefreshServiceDataMessage(TextMessage aTxtMsg, java.lang.String aSubscriptionId)
          Method formatRefreshServiceDataMessage.
static TextMessage formatRegisterCriteriaMessage(TextMessage aTxtMsg, java.lang.String sinkGsh, java.lang.String aSubscriptionId, java.lang.String aSubscriptionExpressionType, java.lang.String aSubscriptionExpression, java.lang.Object anObject)
          Format a register criteria message.
static TextMessage formatSDCMessage(TextMessage sdcMessage, java.lang.String subscriptionID, java.lang.String subscriptionType, java.lang.String message)
          Format the the Service Data change message This method will build a service data change message for a subcription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSFormatters

public JMSFormatters()
Method Detail

formatNotifyMessage

public static TextMessage formatNotifyMessage(TextMessage notifyMessage,
                                              java.lang.String subscriptionSink,
                                              java.lang.String subscriptionID,
                                              java.lang.String queryEvalMessage)
                                       throws JMSException
Build and format the the notify message

Parameters:
queryEvalMessage -
Returns:
the formatted jms text message
Throws:
JMSException

formatSDCMessage

public static TextMessage formatSDCMessage(TextMessage sdcMessage,
                                           java.lang.String subscriptionID,
                                           java.lang.String subscriptionType,
                                           java.lang.String message)
                                    throws JMSException
Format the the Service Data change message This method will build a service data change message for a subcription

Returns:
TextMessage the formatted message
Throws:
JMSException

formatCancelSubMessage

public static TextMessage formatCancelSubMessage(TextMessage cancelSubMsg,
                                                 java.lang.String aSubscriptionID,
                                                 java.lang.String aSubscriptionExpressionType)
                                          throws JMSException
Format a cancel subsription message This method builds the Cancel Subscription Message.

Returns:
TextMessage the formatted message
Throws:
JMSException

formatRegisterCriteriaMessage

public static TextMessage formatRegisterCriteriaMessage(TextMessage aTxtMsg,
                                                        java.lang.String sinkGsh,
                                                        java.lang.String aSubscriptionId,
                                                        java.lang.String aSubscriptionExpressionType,
                                                        java.lang.String aSubscriptionExpression,
                                                        java.lang.Object anObject)
                                                 throws JMSException
Format a register criteria message. This method builds the Register Subscription Message.

Returns:
TextMessage the formatted message
Throws:
JMSException

formatRefreshServiceDataMessage

public static TextMessage formatRefreshServiceDataMessage(TextMessage aTxtMsg,
                                                          java.lang.String aSubscriptionId)
                                                   throws JMSException
Method formatRefreshServiceDataMessage.

Parameters:
aSubscriptionId -
Returns:
TextMessage
Throws:
JMSException