mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/observation/RemoteObservationListener.java
public void registerForObservationStore()
        {
            if (m_ServiceReg == null)
            {
                //dictionary of properties for the event handler for TOPIC_MESSAGE_RECEIVED events
                final Dictionary<String, Object> props = new Hashtable<String, Object>();
                props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
                final String filterString = String.format("(&(%s=%s)(|(%s=%s)(%s=%s)))", //NOCHECKSTYLE multiple string 
                    RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.ObservationStore.toString(), //literals. LDAP filter
                    RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.FindObservationByUUIDResponse.toString(),
                    RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.GetObservationResponse.toString()); 
                props.put(EventConstants.EVENT_FILTER, filterString);
            
                //register the event handler
                m_ServiceReg = m_Context.registerService(EventHandler.class, this, props);
            }
        }
/**
         * Method to register this event handler for events with the {@link RemoteConstants#TOPIC_MESSAGE_RECEIVED}
         * topic from the ObservationStoreNamespace.
         */
Method to register this event handler for events with the  RemoteConstants#TOPIC_MESSAGE_RECEIVED
topic from the ObservationStoreNamespace.
Method to register this event handler for events with the RemoteConstants#TOPIC_MESSAGE_RECEIVED topic from the ObservationStoreNamespace .
public void registerForObservationStore()
        {
            if (m_ServiceReg == null)
            {
                final Dictionary<String, Object> props = new Hashtable<String, Object>();
                props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
                final String filterString = String.format("(&(%s=%s)(|(%s=%s)(%s=%s)))", 
                    RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.ObservationStore.toString(), 
                    RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.FindObservationByUUIDResponse.toString(),
                    RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    ObservationStoreMessageType.GetObservationResponse.toString()); 
                props.put(EventConstants.EVENT_FILTER, filterString);
                m_ServiceReg = m_Context.registerService(EventHandler.class, this, props);
            }
        }
public void registerForObservationStore ( ) { if ( m_ServiceReg == null ) { final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( EventConstants . EVENT_TOPIC , RemoteConstants . TOPIC_MESSAGE_RECEIVED ) ; final String filterString = String . format ( "(&(%s=%s)(|(%s=%s)(%s=%s)))" , RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . ObservationStore . toString ( ) , RemoteConstants . EVENT_PROP_MESSAGE_TYPE , ObservationStoreMessageType . FindObservationByUUIDResponse . toString ( ) , RemoteConstants . EVENT_PROP_MESSAGE_TYPE , ObservationStoreMessageType . GetObservationResponse . toString ( ) ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_ServiceReg = m_Context . registerService ( EventHandler . class , this , props ) ; } }
Method to register this event handler for events with the {@link RemoteConstants#TOPIC_MESSAGE_RECEIVED}
 topic from the ObservationStoreNamespace.
Method to register this event handler for events with the { @link RemoteConstants#TOPIC_MESSAGE_RECEIVED } topic from the ObservationStoreNamespace .
//dictionary of properties for the event handler for TOPIC_MESSAGE_RECEIVED events //NOCHECKSTYLE multiple string  //literals. LDAP filter //register the event handler