Package org.apache.qpid.proton.amqp.messaging

Examples of org.apache.qpid.proton.amqp.messaging.ApplicationProperties


         Header header = populateHeader(message, deliveryCount);
         DeliveryAnnotations deliveryAnnotations = populateDeliveryAnnotations(message);
         MessageAnnotations messageAnnotations = populateMessageAnnotations(message);
         Properties props = populateProperties(message);
         ApplicationProperties applicationProperties = populateApplicationProperties(message);
         Section section = populateBody(message);
         Footer footer = populateFooter(message);
         Set<SimpleString> propertyNames = message.getPropertyNames();
         for (SimpleString propertyName : propertyNames)
         {
View Full Code Here


         HashMap<String, Object> values = new HashMap<String, Object>();
         for (SimpleString name : message.getPropertyNames())
         {
            setProperty(name, message.getTypedProperties().getProperty(name), values);
         }
         return new ApplicationProperties(values);
      }
View Full Code Here

         Header header = populateHeader(message, deliveryCount);
         DeliveryAnnotations deliveryAnnotations = populateDeliveryAnnotations(message);
         MessageAnnotations messageAnnotations = populateMessageAnnotations(message);
         Properties props = populateProperties(message);
         ApplicationProperties applicationProperties = populateApplicationProperties(message);
         Section section = populateBody(message);
         Footer footer = populateFooter(message);
         Set<SimpleString> propertyNames = message.getPropertyNames();
         for (SimpleString propertyName : propertyNames)
         {
View Full Code Here

         HashMap<String, Object> values = new HashMap<String, Object>();
         for (SimpleString name : message.getPropertyNames())
         {
            setProperty(name, message.getTypedProperties().getProperty(name), values);
         }
         return new ApplicationProperties(values);
      }
View Full Code Here

            b.append("Props:     ").append(msg.getProperties()).append("\n");
            b.append("App Props: ").append(msg.getApplicationProperties()).append("\n");
            b.append("Msg Anno:  ").append(msg.getMessageAnnotations()).append("\n");
            b.append("Del Anno:  ").append(msg.getDeliveryAnnotations()).append("\n");
        } else {
            ApplicationProperties p = msg.getApplicationProperties();
            String s = (p == null) ? "null" : safe(p.getValue());
            b.append("Headers: ").append(s).append("\n");
        }
        b.append(msg.getBody()).append("\n");
        b.append("END").append("\n");
        System.out.println(b.toString());
View Full Code Here

    {
        JNIData data = new JNIData(Proton.pn_message_properties(_impl));
        if(data.next() == DataType.MAP)
        {
            Map map = data.getJavaMap();
            _applicationProperties = new ApplicationProperties(map);
        }
        else
        {
            _applicationProperties = null;
        }
View Full Code Here

                    setProperty(jms, prefixVendor + prefixMessageAnnotations + key, entry.getValue());
                }
            }
        }

        final ApplicationProperties ap = amqp.getApplicationProperties();
        if( ap !=null ) {
            for (Map.Entry entry : (Set<Map.Entry>)ap.getValue().entrySet()) {
                String key = entry.getKey().toString();
                if( "JMSXGroupID".equals(key) ) {
                    vendor.setJMSXGroupID(jms, entry.getValue().toString());
                } else if( "JMSXGroupSequence".equals(key) ) {
                    vendor.setJMSXGroupSequence(jms, ((Number)entry.getValue()).intValue());
View Full Code Here

                    setProperty(jms, prefixVendor + prefixMessageAnnotations + key, entry.getValue());
                }
            }
        }

        final ApplicationProperties ap = amqp.getApplicationProperties();
        if( ap !=null ) {
            for (Map.Entry entry : (Set<Map.Entry>)ap.getValue().entrySet()) {
                String key = entry.getKey().toString();
                if( "JMSXGroupID".equals(key) ) {
                    vendor.setJMSXGroupID(jms, entry.getValue().toString());
                } else if( "JMSXGroupSequence".equals(key) ) {
                    vendor.setJMSXGroupSequence(jms, ((Number)entry.getValue()).intValue());
View Full Code Here

    {
        JNIData data = new JNIData(Proton.pn_message_properties(_impl));
        if(data.next() == DataType.MAP)
        {
            Map map = data.getJavaMap();
            _applicationProperties = new ApplicationProperties(map);
        }
        else
        {
            _applicationProperties = null;
        }
View Full Code Here

    }


    public ApplicationProperties newInstance(Object described)
    {
        return new ApplicationProperties( (Map) described );
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.messaging.ApplicationProperties

Copyright © 2018 www.massapicom. 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.