本文整理了Java中org.springframework.ws.client.core.WebServiceTemplate.setMessageSenders()
方法的一些代码示例,展示了WebServiceTemplate.setMessageSenders()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceTemplate.setMessageSenders()
方法的具体详情如下:
包路径:org.springframework.ws.client.core.WebServiceTemplate
类名称:WebServiceTemplate
方法名:setMessageSenders
暂无
代码示例来源:origin: org.springframework.boot/spring-boot
private <T extends WebServiceTemplate> void configureMessageSenders(
T webServiceTemplate) {
if (this.messageSenders.isOnlyAdditional() && this.detectHttpMessageSender) {
Set<WebServiceMessageSender> merged = append(
this.messageSenders.getMessageSenders(),
new HttpWebServiceMessageSenderBuilder().build());
webServiceTemplate
.setMessageSenders(merged.toArray(new WebServiceMessageSender[0]));
}
else if (!CollectionUtils.isEmpty(this.messageSenders.getMessageSenders())) {
webServiceTemplate.setMessageSenders(this.messageSenders.getMessageSenders()
.toArray(new WebServiceMessageSender[0]));
}
}
代码示例来源:origin: spring-projects/spring-integration
public void setMessageSenders(WebServiceMessageSender... messageSenders) {
Assert.state(!this.webServiceTemplateExplicitlySet,
() -> "'messageSenders' must be specified on the provided: " + this.webServiceTemplate);
this.webServiceTemplate.setMessageSenders(messageSenders);
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
/** Sets multiple <code>WebServiceMessageSender</code> to be used by the gateway. */
public final void setMessageSenders(WebServiceMessageSender[] messageSenders) {
webServiceTemplate.setMessageSenders(messageSenders);
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
/** Sets multiple {@code WebServiceMessageSender} to be used by the gateway. */
public final void setMessageSenders(WebServiceMessageSender[] messageSenders) {
webServiceTemplate.setMessageSenders(messageSenders);
}
代码示例来源:origin: spring-projects/spring-ws
/** Sets multiple {@code WebServiceMessageSender} to be used by the gateway. */
public final void setMessageSenders(WebServiceMessageSender[] messageSenders) {
webServiceTemplate.setMessageSenders(messageSenders);
}
代码示例来源:origin: apache/servicemix-bundles
/** Sets multiple {@code WebServiceMessageSender} to be used by the gateway. */
public final void setMessageSenders(WebServiceMessageSender[] messageSenders) {
webServiceTemplate.setMessageSenders(messageSenders);
}
代码示例来源:origin: spring-projects/spring-ws
private void initMessageSenders(DefaultStrategiesHelper helper) {
List<WebServiceMessageSender> messageSenders = helper.getDefaultStrategies(WebServiceMessageSender.class);
setMessageSenders(messageSenders.toArray(new WebServiceMessageSender[messageSenders.size()]));
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
private void initMessageSenders(DefaultStrategiesHelper helper) {
List<WebServiceMessageSender> messageSenders = helper.getDefaultStrategies(WebServiceMessageSender.class);
setMessageSenders(messageSenders.toArray(new WebServiceMessageSender[messageSenders.size()]));
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
private void initMessageSenders(DefaultStrategiesHelper helper) {
List<WebServiceMessageSender> messageSenders = helper.getDefaultStrategies(WebServiceMessageSender.class);
setMessageSenders(messageSenders.toArray(new WebServiceMessageSender[messageSenders.size()]));
}
代码示例来源:origin: apache/servicemix-bundles
private void initMessageSenders(DefaultStrategiesHelper helper) {
List<WebServiceMessageSender> messageSenders = helper.getDefaultStrategies(WebServiceMessageSender.class);
setMessageSenders(messageSenders.toArray(new WebServiceMessageSender[messageSenders.size()]));
}
代码示例来源:origin: net.javacrumbs/spring-ws-test
@SuppressWarnings("unchecked")
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
Collection<WebServiceTemplate> templates = beanFactory.getBeansOfType(WebServiceTemplate.class).values();
if (templates.size()==0)
{
throw new BeanCreationException("No WebServiceTemplate found in the servlet context.");
}
Collection<AbstractMockWebServiceMessageSender> mockSenders = beanFactory.getBeansOfType(AbstractMockWebServiceMessageSender.class).values();
WebServiceMessageSender[] mockSenderArray = mockSenders.toArray(new WebServiceMessageSender[mockSenders.size()]);
for (WebServiceTemplate template: templates)
{
template.setMessageSenders(mockSenderArray);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!