@Test public void testGetValueFromMessage() throws Exception { AdaptrisMessage msg = createMessage(); JmsReplyToCacheValueTranslator translator = new JmsReplyToCacheValueTranslator(); assertEquals("myQueue", ((Queue) translator.getValueFromMessage(msg)).getQueueName()); }
@Override public Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException { if (msg.getObjectHeaders().containsKey(JmsConstants.OBJ_JMS_REPLY_TO_KEY)) { return (Destination) msg.getObjectHeaders().get(JmsConstants.OBJ_JMS_REPLY_TO_KEY); } return null; }
JmsReplyToCacheValueTranslator implements CacheValueTranslator<Destination> { @Override public Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException { if (msg.getObjectHeaders().containsKey(JmsConstants.OBJ_JMS_REPLY_TO_KEY)) { return (Destination) msg.getObjectHeaders().get(JmsConstants.OBJ_JMS_REPLY_TO_KEY); } return null; } }
JmsReplyToCacheValueTranslator implements CacheValueTranslator<Destination> { @Override public Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException { if (msg.getObjectHeaders().containsKey(JmsConstants.OBJ_JMS_REPLY_TO_KEY)) { return (Destination) msg.getObjectHeaders().get(JmsConstants.OBJ_JMS_REPLY_TO_KEY); } return null; }  }
JmsReplyToCacheValueTranslator implements CacheValueTranslator<Destination> { @Override public Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException { if (msg.getObjectHeaders().containsKey(JmsConstants.OBJ_JMS_REPLY_TO_KEY)) { return (Destination) msg.getObjectHeaders().get(JmsConstants.OBJ_JMS_REPLY_TO_KEY); } return null; }  @Override Destination getValueFromMessage(AdaptrisMessage msg); @Override void addValueToMessage(AdaptrisMessage msg, Destination value); }
JmsReplyToCacheValueTranslator implements CacheValueTranslator<Destination> { @Override public Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException { if (msg.getObjectHeaders().containsKey(JmsConstants.OBJ_JMS_REPLY_TO_KEY)) { return (Destination) msg.getObjectHeaders().get(JmsConstants.OBJ_JMS_REPLY_TO_KEY); } return null; }  @Override Destination getValueFromMessage(AdaptrisMessage msg); @Override void addValueToMessage(AdaptrisMessage msg, Destination value);  }