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

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


      {
         long messageFormat = message.getLongProperty(MESSAGE_FORMAT);
         Integer size = message.getIntProperty(PROTON_MESSAGE_SIZE_SS);

         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);
View Full Code Here


      }

      private static DeliveryAnnotations populateDeliveryAnnotations(ServerMessage message)
      {
         HashMap actualValues = new HashMap();
         DeliveryAnnotations deliveryAnnotations =  new DeliveryAnnotations(actualValues);
         for (SimpleString name : message.getPropertyNames())
         {
            String sName = name.toString();
            if(sName.startsWith(DELIVERY_ANNOTATIONS))
            {
View Full Code Here

      {
         long messageFormat = message.getLongProperty(MESSAGE_FORMAT);
         Integer size = message.getIntProperty(PROTON_MESSAGE_SIZE_SS);

         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);
View Full Code Here

      }

      private static DeliveryAnnotations populateDeliveryAnnotations(ServerMessage message)
      {
         HashMap actualValues = new HashMap();
         DeliveryAnnotations deliveryAnnotations =  new DeliveryAnnotations(actualValues);
         for (SimpleString name : message.getPropertyNames())
         {
            String sName = name.toString();
            if(sName.startsWith(DELIVERY_ANNOTATIONS))
            {
View Full Code Here

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

        }
        if( header.getDeliveryCount()!=null ) {
            vendor.setJMSXDeliveryCount(jms, header.getDeliveryCount().longValue());
        }

        final DeliveryAnnotations da = amqp.getDeliveryAnnotations();
        if( da!=null ) {
            for (Map.Entry entry : (Set<Map.Entry>)da.getValue().entrySet()) {
                String key = entry.getKey().toString();
                setProperty(jms, prefixVendor + prefixDeliveryAnnotations + key, entry.getValue());
            }
        }
View Full Code Here

        }
        if( header.getDeliveryCount()!=null ) {
            vendor.setJMSXDeliveryCount(jms, header.getDeliveryCount().longValue());
        }

        final DeliveryAnnotations da = amqp.getDeliveryAnnotations();
        if( da!=null ) {
            for (Map.Entry entry : (Set<Map.Entry>)da.getValue().entrySet()) {
                String key = entry.getKey().toString();
                setProperty(jms, prefixVendor + prefixDeliveryAnnotations + key, entry.getValue());
            }
        }
View Full Code Here

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

    }


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

      {
         long messageFormat = message.getLongProperty(MESSAGE_FORMAT);
         Integer size = message.getIntProperty(PROTON_MESSAGE_SIZE_SS);

         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);
View Full Code Here

TOP

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

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.