String[] names = {"Accept", "x-url", "x-signature", "x-user"};
hm.setBeanFactory(context.getBeanFactory());
hm.setOutboundHeaderNames(names);
hm.setInboundHeaderNames(names);
HttpRequestExecutingMessageHandler statusNotifier = new HttpRequestExecutingMessageHandler(uri);
statusNotifier.setBeanName(platformType + "StatusNotifier");
statusNotifier.setBeanFactory(context.getBeanFactory());
statusNotifier.setChannelResolver(channelResolver);
statusNotifier.setHttpMethod(HttpMethod.POST);
statusNotifier.setCharset("UTF-8");
statusNotifier.setHeaderMapper(hm);
statusNotifier.setExtractPayload(true);
statusNotifier.setOrder(3);
statusNotifier.setRequiresReply(false);
statusNotifier.setExpectReply(false);
outputChannel.subscribe(statusNotifier);
}
}