mil.dod.th.ose.gui.remote.encryption/src/mil/dod/th/ose/gui/remotesystemencryption/EncryptionTypeManagerImpl.java
public void registerForEncryptionInfoEvents()
        {
            // register to listen to the Asset 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))", 
                RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.EncryptionInfo.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    EncryptionInfoMessageType.GetEncryptionTypeResponse.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            
            //register the event handler that listens for EncryptionInfo namespace responses
            m_Registration = m_BundleContext.registerService(EventHandler.class, this, props);
        }
/**
         * Method to register this event handler for the message received topic.
         */
Method to register this event handler for the message received topic.
Method to register this event handler for the message received topic .
public void registerForEncryptionInfoEvents()
        {
            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))", 
                RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.EncryptionInfo.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                    EncryptionInfoMessageType.GetEncryptionTypeResponse.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            m_Registration = m_BundleContext.registerService(EventHandler.class, this, props);
        }
public void registerForEncryptionInfoEvents ( ) { 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))" , RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . EncryptionInfo . toString ( ) , RemoteConstants . EVENT_PROP_MESSAGE_TYPE , EncryptionInfoMessageType . GetEncryptionTypeResponse . toString ( ) ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_Registration = m_BundleContext . registerService ( EventHandler . class , this , props ) ; }
Method to register this event handler for the message received topic.
Method to register this event handler for the message received topic .
// register to listen to the Asset events //register the event handler that listens for EncryptionInfo namespace responses