INT-3262 JDK8 Javadoc Commit
Increase receive timeout for `Jsr223TransformerTests#testInt3162ScriptExecutorThreadSafety`. JIRA: https://jira.springsource.org/browse/INT-3262 JIRA: https://jira.springsource.org/browse/INT-3263
This commit is contained in:
committed by
Artem Bilan
parent
66efb34342
commit
c45b708341
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -98,6 +98,8 @@ public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyPro
|
||||
/**
|
||||
* Set the Map of URI variable expressions to evaluate against the outbound message
|
||||
* when replacing the variable placeholders in a URI template.
|
||||
*
|
||||
* @param uriVariableExpressions The URI variable expressions.
|
||||
*/
|
||||
public void setUriVariableExpressions(Map<String, Expression> uriVariableExpressions) {
|
||||
synchronized (this.uriVariableExpressions) {
|
||||
@@ -114,6 +116,8 @@ public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyPro
|
||||
* Specify whether empty String response payloads should be ignored.
|
||||
* The default is <code>true</code>. Set this to <code>false</code> if
|
||||
* you want to send empty String responses in reply Messages.
|
||||
*
|
||||
* @param ignoreEmptyResponses true if empty responses should be ignored.
|
||||
*/
|
||||
public void setIgnoreEmptyResponses(boolean ignoreEmptyResponses) {
|
||||
this.ignoreEmptyResponses = ignoreEmptyResponses;
|
||||
@@ -198,6 +202,7 @@ public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyPro
|
||||
this.requestMessage = requestMessage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doWithMessage(WebServiceMessage message) throws IOException, TransformerException {
|
||||
Object payload = this.requestMessage.getPayload();
|
||||
if (message instanceof SoapMessage){
|
||||
@@ -217,6 +222,7 @@ public abstract class AbstractWebServiceOutboundGateway extends AbstractReplyPro
|
||||
|
||||
protected abstract class ResponseMessageExtractor extends TransformerObjectSupport implements WebServiceMessageExtractor<Object> {
|
||||
|
||||
@Override
|
||||
public Object extractData(WebServiceMessage message)
|
||||
throws IOException, TransformerException {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package org.springframework.integration.ws;
|
||||
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.oxm.Marshaller;
|
||||
import org.springframework.oxm.Unmarshaller;
|
||||
import org.springframework.util.Assert;
|
||||
@@ -65,6 +65,9 @@ public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInbou
|
||||
|
||||
/**
|
||||
* Creates a new <code>MarshallingWebServiceInboundGateway</code> with the given marshaller and unmarshaller.
|
||||
*
|
||||
* @param marshaller The marshaller.
|
||||
* @param unmarshaller The unmarshaller.
|
||||
*/
|
||||
public MarshallingWebServiceInboundGateway(Marshaller marshaller, Unmarshaller unmarshaller) {
|
||||
Assert.notNull(marshaller, "'marshaller' must no be null");
|
||||
@@ -83,6 +86,7 @@ public class MarshallingWebServiceInboundGateway extends AbstractWebServiceInbou
|
||||
this.unmarshaller = unmarshaller;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
super.onInit();
|
||||
Assert.notNull(marshaller, "This implementation requires Marshaller");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,14 +31,14 @@ import org.springframework.ws.support.MarshallingUtils;
|
||||
/**
|
||||
* An outbound Messaging Gateway for invoking Web Services that also supports
|
||||
* marshalling and unmarshalling of the request and response messages.
|
||||
*
|
||||
*
|
||||
* @author Mark Fisher
|
||||
* @author Oleg Zhurakousky
|
||||
* @see Marshaller
|
||||
* @see Unmarshaller
|
||||
*/
|
||||
public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutboundGateway {
|
||||
|
||||
|
||||
private volatile Marshaller marshaller;
|
||||
private volatile Unmarshaller unmarshaller;
|
||||
|
||||
@@ -80,6 +80,9 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
/**
|
||||
* Sets the provided Marshaller and Unmarshaller on this gateway's WebServiceTemplate.
|
||||
* Neither may be null.
|
||||
*
|
||||
* @param marshaller The marshaller.
|
||||
* @param unmarshaller The unmarshaller.
|
||||
*/
|
||||
private void configureMarshallers(Marshaller marshaller, Unmarshaller unmarshaller) {
|
||||
Assert.notNull(marshaller, "marshaller must not be null");
|
||||
@@ -90,7 +93,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
"both Marshaller and Unmarshaller arguments.");
|
||||
unmarshaller = (Unmarshaller) marshaller;
|
||||
}
|
||||
|
||||
|
||||
Assert.notNull(unmarshaller, "unmarshaller must not be null");
|
||||
this.marshaller = marshaller;
|
||||
this.unmarshaller = unmarshaller;
|
||||
@@ -98,13 +101,13 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
|
||||
@Override
|
||||
protected Object doHandle(String uri, Message<?> requestMessage, WebServiceMessageCallback requestCallback) {
|
||||
Object reply = this.getWebServiceTemplate().sendAndReceive(uri,
|
||||
Object reply = this.getWebServiceTemplate().sendAndReceive(uri,
|
||||
new MarshallingRequestMessageCallback(requestCallback, requestMessage), new MarshallingResponseMessageExtractor());
|
||||
return reply;
|
||||
}
|
||||
|
||||
|
||||
private class MarshallingRequestMessageCallback extends RequestMessageCallback {
|
||||
|
||||
|
||||
public MarshallingRequestMessageCallback(WebServiceMessageCallback requestCallback, Message<?> requestMessage){
|
||||
super(requestCallback, requestMessage);
|
||||
}
|
||||
@@ -114,7 +117,7 @@ public class MarshallingWebServiceOutboundGateway extends AbstractWebServiceOutb
|
||||
MarshallingUtils.marshal(marshaller, payload, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private class MarshallingResponseMessageExtractor extends ResponseMessageExtractor {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user