Package flex.messaging.config

Examples of flex.messaging.config.ConfigMap.addProperty()


        if (loginAfterDisconnect)
        {
            ConfigMap loginAfterDisconnect = new ConfigMap();
            // Adding as a value rather than attribute to the parent
            loginAfterDisconnect.addProperty("", "true");           
            properties.addProperty(ConfigurationConstants.LOGIN_AFTER_DISCONNECT_ELEMENT, loginAfterDisconnect);
        }                      

        if (createdProperties && properties.size() > 0)
            endpointConfig.addProperty("properties", properties);
View Full Code Here


     * @return A <code>ConfigMap</code> of destination properties that the client needs.
     */
    public ConfigMap describeDestination()
    {
        ConfigMap destinationConfig = new ConfigMap();
        destinationConfig.addProperty("id", getId());

        ConfigMap channelsConfig = new ConfigMap();
        for (Iterator iter = channelIds.iterator(); iter.hasNext();)
        {
            String id = (String) iter.next();
View Full Code Here

        ConfigMap channelsConfig = new ConfigMap();
        for (Iterator iter = channelIds.iterator(); iter.hasNext();)
        {
            String id = (String) iter.next();
            ConfigMap channelConfig = new ConfigMap();
            channelConfig.addProperty("ref", id);
            channelsConfig.addProperty("channel", channelConfig);
        }

        if (channelsConfig.size() > 0)
        {
View Full Code Here

            ConfigMap defaultChannelsMap = new ConfigMap();
            for (Iterator iter = defaultChannels.iterator(); iter.hasNext();)
            {
                String id = (String)iter.next();
                ConfigMap channelConfig = new ConfigMap();
                channelConfig.addProperty("ref", id);
                defaultChannelsMap.addProperty("channel", channelConfig);
                if (!channelIds.contains(id))
                    channelIds.add(id);
            }
            if (defaultChannelsMap.size() > 0)
View Full Code Here

       
        if (pollingEnabled)
        {
            ConfigMap pollingEnabled = new ConfigMap();
            // Adding as a value rather than attribute to the parent
            pollingEnabled.addProperty("", "true");           
            properties.addProperty(POLLING_ENABLED, pollingEnabled);
        }       
               
        if (pollingIntervalMillis > -1)
        {
View Full Code Here

               
        if (pollingIntervalMillis > -1)
        {
            ConfigMap pollingInterval = new ConfigMap();
            // Adding as a value rather than attribute to the parent
            pollingInterval.addProperty("", String.valueOf(pollingIntervalMillis));
            properties.addProperty(POLLING_INTERVAL_MILLIS, pollingInterval);
        }
       
        if (piggybackingEnabled)
        {
View Full Code Here

       
        if (piggybackingEnabled)
        {
            ConfigMap piggybackingEnabled = new ConfigMap();
            // Adding as a value rather than attribute to the parent
            piggybackingEnabled.addProperty("", String.valueOf(piggybackingEnabled));
            properties.addProperty(ConfigurationConstants.PIGGYBACKING_ENABLED_ELEMENT, piggybackingEnabled);
        }
       
        if (createdProperties && properties.size() > 0)
            endpointConfig.addProperty(ConfigurationConstants.PROPERTIES_ELEMENT, properties);
View Full Code Here

        if (loginAfterDisconnect)
        {
            ConfigMap loginAfterDisconnect = new ConfigMap();
            // Adding as a value rather than attribute to the parent
            loginAfterDisconnect.addProperty("", "true");           
            properties.addProperty(ConfigurationConstants.LOGIN_AFTER_DISCONNECT_ELEMENT, loginAfterDisconnect);
        }                      

        if (createdProperties && properties.size() > 0)
            endpointConfig.addProperty("properties", properties);
View Full Code Here

            ConfigMap defaultChannelsMap = new ConfigMap();           
            for (Iterator iter = defaultChannels.iterator(); iter.hasNext();)
            {
                String id = (String)iter.next();  
                ConfigMap channelConfig = new ConfigMap();
                channelConfig.addProperty("ref", id);               
                defaultChannelsMap.addProperty("channel", channelConfig);
                if (!channelIds.contains(id))
                    channelIds.add(id);
            }
            if (defaultChannelsMap.size() > 0)
View Full Code Here

     * their properties to be sent to the client.
     */
    public ConfigMap describeDestination()
    {
        ConfigMap destinationConfig = new ConfigMap();
        destinationConfig.addProperty("id", getId());
       
        ConfigMap channelsConfig = new ConfigMap();       
        for (Iterator iter = channelIds.iterator(); iter.hasNext();)
        {
            String id = (String) iter.next();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.