in qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpJmsMessageFacade.java [259:305]
protected void copyInto(AmqpJmsMessageFacade target) {
target.connection = connection;
target.consumerDestination = consumerDestination;
target.syntheticExpiration = syntheticExpiration;
target.syntheticDeliveryTime = syntheticDeliveryTime;
target.userSpecifiedTTL = userSpecifiedTTL;
if (destination != null) {
target.setDestination(destination);
}
if (replyTo != null) {
target.setReplyTo(replyTo);
}
target.setAmqpHeader(header);
if (properties != null) {
target.setProperties(new Properties(properties));
}
target.setBody(body);
if (deliveryAnnotationsMap != null && !deliveryAnnotationsMap.isEmpty()) {
target.lazyCreateDeliveryAnnotations();
target.deliveryAnnotationsMap.putAll(deliveryAnnotationsMap);
}
if (applicationPropertiesMap != null && !applicationPropertiesMap.isEmpty()) {
target.lazyCreateApplicationProperties();
target.applicationPropertiesMap.putAll(applicationPropertiesMap);
}
if (messageAnnotationsMap != null && !messageAnnotationsMap.isEmpty()) {
target.lazyCreateMessageAnnotations();
target.messageAnnotationsMap.putAll(messageAnnotationsMap);
}
if (footerMap != null && !footerMap.isEmpty()) {
target.lazyCreateFooter();
target.footerMap.putAll(footerMap);
}
if (tracingContext != null && !tracingContext.isEmpty()) {
target.lazyCreateTracingContext().putAll(tracingContext);
}
}