Properties obj = new Properties(); obj.setMessageId(messageId); obj.setUserId(userId); obj.setTo(to); obj.setSubject(subject); obj.setReplyTo(replyTo); obj.setCorrelationId(correlationId); obj.setContentType(contentType); obj.setContentEncoding(contentEncoding); obj.setAbsoluteExpiryTime(absoluteExpiryTime); obj.setCreationTime(creationTime); obj.setGroupId(groupId); obj.setGroupSequence(groupSequence); obj.setReplyToGroupId(replyToGroupId);
Properties properties = new Properties(); if (serverMessage.getMessageHeader().getEncoding() != null) properties.setContentEncoding(Symbol.valueOf(serverMessage.getMessageHeader().getEncoding())); properties.setCorrelationId(getCorrelationId(serverMessage)); properties.setCreationTime(new Date(serverMessage.getMessageHeader().getTimestamp())); properties.setMessageId(getMessageId(serverMessage)); Symbol contentType = getContentTypeSymbol(serverMessage.getMessageBody(), serverMessage.getMessageHeader().getMimeType()); properties.setContentType(contentType); properties.setUserId(new Binary(userId.getBytes(StandardCharsets.UTF_8))); properties.setReplyTo(serverMessage.getMessageHeader().getReplyTo()); properties.setTo(serverMessage.getTo()); null, messageAnnotation == null ? null : messageAnnotation.createEncodingRetainingSection(), properties.createEncodingRetainingSection(), applicationProperties == null ? null : applicationProperties.createEncodingRetainingSection(), null,
Properties props = new Properties(); props.setCreationTime(new Date(serverMessage.getArrivalTime())); props.setCreationTime(new Date(deliveryProps.getTimestamp())); props.setTo(to); props.setContentEncoding(Symbol.valueOf(msgProps.getContentEncoding())); props.setCorrelationId(correlationIdAsString); props.setCorrelationId(new Binary(msgProps.getCorrelationId())); props.setMessageId(msgProps.getMessageId()); props.setReplyTo(to); final Symbol contentType = MessageConverter_to_1_0.getContentType(originalContentMimeType); props.setContentType(contentType); props.setUserId(new Binary(msgProps.getUserId())); props.setSubject(String.valueOf(applicationPropertiesMap.get("x-jms-type"))); applicationPropertiesMap.remove("x-jms-type"); props.setSubject(String.valueOf(applicationPropertiesMap.get("qpid.subject"))); applicationPropertiesMap.remove("qpid.subject");
Properties props = new Properties(); header.setDurable(serverMessage.isPersistent()); props.setContentEncoding(Symbol.valueOf(contentHeader.getEncodingAsString())); props.setContentType(contentType); props.setCorrelationId(convertMessageId(correlationId)); props.setCorrelationId(correlationIdAsBytes); props.setMessageId(convertMessageId(messageId)); props.setReplyTo(convertReplyTo(contentHeader.getReplyTo())); props.setUserId(new Binary(contentHeader.getUserId().getBytes())); props.setCreationTime(new Date(contentHeader.getTimestamp())); props.setCreationTime(new Date(serverMessage.getArrivalTime())); props.setSubject(contentHeader.getType().toString()); props.setSubject(String.valueOf(applicationPropertiesMap.get("qpid.subject"))); applicationPropertiesMap.remove("qpid.subject"); props.setGroupId(String.valueOf(applicationPropertiesMap.get("JMSXGroupID"))); applicationPropertiesMap.remove("JMSXGroupID");