@Test public void testSetJmsAmqpTypedEncodingOnNonObjectMessage() throws JMSException { AmqpJmsMessageFacade message = createAmqpMessageFacade(); try { AmqpJmsMessagePropertyIntercepter.setProperty(message, JMS_AMQP_TYPED_ENCODING, true); fail("Should have thrown an exception"); } catch (MessageFormatException mfe) { } }
public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws JMSException { PropertyIntercepter propertyExpression = PROPERTY_INTERCEPTERS.get(name); if (propertyExpression != null) { propertyExpression.setProperty(message, value); } else { message.setApplicationProperty(name, value); } }
AmqpJmsMessagePropertyIntercepter { public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws JMSException { PropertyIntercepter propertyExpression = PROPERTY_INTERCEPTERS.get(name); if (propertyExpression != null) { propertyExpression.setProperty(message, value); } else { message.setApplicationProperty(name, value); } } }
AmqpJmsMessagePropertyIntercepter { public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws JMSException { PropertyIntercepter propertyExpression = PROPERTY_INTERCEPTERS.get(name); if (propertyExpression != null) { propertyExpression.setProperty(message, value); } else { message.setApplicationProperty(name, value); } }  }
AmqpJmsMessagePropertyIntercepter { public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws JMSException { PropertyIntercepter propertyExpression = PROPERTY_INTERCEPTERS.get(name); if (propertyExpression != null) { propertyExpression.setProperty(message, value); } else { message.setApplicationProperty(name, value); } }  static Object getProperty(AmqpJmsMessageFacade message, String name); static void setProperty(AmqpJmsMessageFacade message, String name, Object value); static boolean propertyExists(AmqpJmsMessageFacade message, String name); static Set<String> getAllPropertyNames(); static Set<String> getPropertyNames(AmqpJmsMessageFacade message); static void clearProperties(AmqpJmsMessageFacade message); }
AmqpJmsMessagePropertyIntercepter { public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws JMSException { PropertyIntercepter propertyExpression = PROPERTY_INTERCEPTERS.get(name); if (propertyExpression != null) { propertyExpression.setProperty(message, value); } else { message.setApplicationProperty(name, value); } }  static Object getProperty(AmqpJmsMessageFacade message, String name); static void setProperty(AmqpJmsMessageFacade message, String name, Object value); static boolean propertyExists(AmqpJmsMessageFacade message, String name); static Set<String> getAllPropertyNames(); static Set<String> getPropertyNames(AmqpJmsMessageFacade message); static void clearProperties(AmqpJmsMessageFacade message);  }