Package org.apache.qpid.proton.amqp

Examples of org.apache.qpid.proton.amqp.Symbol


         {
            Map values = deliveryAnnotations.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(DELIVERY_ANNOTATIONS + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here


         {
            Map values = footer.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(FOOTER_VALUES + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here

         {
            Map values = messageAnnotations.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(MESSAGE_ANNOTATIONS + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here

            String realName = propertyName.toString();
            if (realName.startsWith(MESSAGE_ANNOTATIONS))
            {

               SimpleString value = (SimpleString) typedProperties.getProperty(propertyName);
               Symbol symbol = Symbol.getSymbol(realName.replace(MESSAGE_ANNOTATIONS, ""));
               messageAnnotations.getValue().put(symbol, value.toString());
            }
         }
         MessageImpl protonMessage = new MessageImpl(header, deliveryAnnotations, messageAnnotations, props, applicationProperties, section, footer);
         protonMessage.setMessageFormat(getMessageFormat(message.getLongProperty(new SimpleString(PROTON_MESSAGE_FORMAT))));
View Full Code Here

         {
            Map values = deliveryAnnotations.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(DELIVERY_ANNOTATIONS + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here

         {
            Map values = footer.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(FOOTER_VALUES + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here

         {
            Map values = messageAnnotations.getValue();
            Set keySet = values.keySet();
            for (Object key : keySet)
            {
               Symbol symbol = (Symbol) key;
               Object value = values.get(key);
               properties.putSimpleStringProperty(new SimpleString(MESSAGE_ANNOTATIONS + symbol.toString()), new SimpleString(value.toString()));
            }
         }
      }
View Full Code Here

            String realName = propertyName.toString();
            if (realName.startsWith(MESSAGE_ANNOTATIONS))
            {

               SimpleString value = (SimpleString) typedProperties.getProperty(propertyName);
               Symbol symbol = Symbol.getSymbol(realName.replace(MESSAGE_ANNOTATIONS, ""));
               messageAnnotations.getValue().put(symbol, value.toString());
            }
         }
         MessageImpl protonMessage = new MessageImpl(header, deliveryAnnotations, messageAnnotations, props, applicationProperties, section, footer);
         protonMessage.setMessageFormat(getMessageFormat(message.getLongProperty(new SimpleString(PROTON_MESSAGE_FORMAT))));
View Full Code Here

                @Override
                public void onResponse(IAmqpProtocolConverter converter, Response response) throws IOException {
                    if (response.isException()) {
                        sender.setSource(null);
                        Throwable exception = ((ExceptionResponse) response).getException();
                        Symbol condition = AmqpError.INTERNAL_ERROR;
                        if (exception instanceof InvalidSelectorException) {
                            condition = AmqpError.INVALID_FIELD;
                        }
                        sender.setCondition(new ErrorCondition(condition, exception.getMessage()));
                        subscriptionsByConsumerId.remove(id);
View Full Code Here

                @Override
                public void onResponse(IAmqpProtocolConverter converter, Response response) throws IOException {
                    if (response.isException()) {
                        sender.setSource(null);
                        Throwable exception = ((ExceptionResponse) response).getException();
                        Symbol condition = AmqpError.INTERNAL_ERROR;
                        if (exception instanceof InvalidSelectorException) {
                            condition = AmqpError.INVALID_FIELD;
                        }
                        sender.setCondition(new ErrorCondition(condition, exception.getMessage()));
                        subscriptionsByConsumerId.remove(id);
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.Symbol

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.