final Target target, final DiagnosticLoggingAdapter log) { final ExternalMessage originalMessage = outboundSignal.getExternalMessage(); final Map<String, String> originalHeaders = new HashMap<>(originalMessage.getHeaders()); return messageBuilder.build(); final Signal<?> sourceSignal = outboundSignal.getSource(); final Map<String, String> mappedHeaders = mapping.getMapping().entrySet().stream() .map(e -> new AbstractMap.SimpleEntry<>(e.getKey(),
final ExternalMessage response = outbound.getExternalMessage(); final String correlationId = response.getHeaders().get(CORRELATION_ID.getKey()); LogUtil.enhanceLogWithCorrelationId(log(), correlationId); final T replyTarget = toReplyTarget(replyToFromHeader); log().info("Publishing mapped response/error message of type <{}> to reply target <{}>", outbound.getSource().getType(), replyTarget); log().debug("Publishing mapped response/error message of type <{}> to reply target <{}>: {}", outbound.getSource().getType(), replyTarget, response); final ExternalMessage message = outbound.getExternalMessage(); final String correlationId = message.getHeaders().get(CORRELATION_ID.getKey()); LogUtil.enhanceLogWithCorrelationId(log(), correlationId); final Signal<?> outboundSource = outbound.getSource(); log().debug("Publishing mapped message of type <{}> to targets <{}>: {}", outboundSource.getType(), outbound.getTargets(), message); outbound.getTargets().forEach(target -> { log().info("Publishing mapped message of type <{}> to target address <{}>", outboundSource.getType(), target.getAddress());
final ExternalMessage response = outbound.getExternalMessage(); final String correlationId = response.getHeaders().get(CORRELATION_ID.getKey()); LogUtil.enhanceLogWithCorrelationId(log(), correlationId); final T replyTarget = toReplyTarget(replyToFromHeader); log().info("Publishing mapped response/error message of type <{}> to reply target <{}>", outbound.getSource().getType(), replyTarget); log().debug("Publishing mapped response/error message of type <{}> to reply target <{}>: {}", outbound.getSource().getType(), replyTarget, response); final ExternalMessage message = outbound.getExternalMessage(); final String correlationId = message.getHeaders().get(CORRELATION_ID.getKey()); LogUtil.enhanceLogWithCorrelationId(log(), correlationId); final Signal<?> outboundSource = outbound.getSource(); log().debug("Publishing mapped message of type <{}> to targets <{}>: {}", outboundSource.getType(), outbound.getTargets(), message); outbound.getTargets().forEach(target -> { log().info("Publishing mapped message of type <{}> to target address <{}>", outboundSource.getType(), target.getAddress());
final Target target, final DiagnosticLoggingAdapter log) { final ExternalMessage originalMessage = outboundSignal.getExternalMessage(); final Map<String, String> originalHeaders = new HashMap<>(originalMessage.getHeaders()); return messageBuilder.build(); final Signal<?> sourceSignal = outboundSignal.getSource(); final Map<String, String> mappedHeaders = mapping.getMapping().entrySet().stream() .map(e -> new AbstractMap.SimpleEntry<>(e.getKey(),
/** * Checks whether the passed in {@code outboundSignal} is a response or an error. * * @param outboundSignal the OutboundSignal to check. * @return {@code true} if the OutboundSignal is a response or an error, {@code false} otherwise */ private boolean isResponseOrError(final OutboundSignal.WithExternalMessage outboundSignal) { return (outboundSignal.getExternalMessage().isResponse() || outboundSignal.getExternalMessage().isError()); }
/** * Checks whether the passed in {@code outboundSignal} is a response or an error. * * @param outboundSignal the OutboundSignal to check. * @return {@code true} if the OutboundSignal is a response or an error, {@code false} otherwise */ private boolean isResponseOrError(final OutboundSignal.WithExternalMessage outboundSignal) { return (outboundSignal.getExternalMessage().isResponse() || outboundSignal.getExternalMessage().isError()); }