typo in exception message

This commit is contained in:
Mark Fisher
2011-09-02 10:03:58 -04:00
parent 6d421f30b2
commit 36322eff51

View File

@@ -56,17 +56,16 @@ public class WebServiceInboundGatewayParser extends AbstractInboundGatewayParser
}
else { // check if unmarshaller is defined which is a mistake without marshaller
if (StringUtils.hasText(unmarshallerRef)){
throw new IllegalArgumentException("Defining 'unmarshaller' without 'marshaller' is not allowed");
throw new IllegalArgumentException("An 'unmarshaller' is not allowed without 'marshaller'.");
}
}
if (StringUtils.hasText(marshallerRef) || StringUtils.hasText(unmarshallerRef)){
String extractPayload = element.getAttribute("extract-payload");
if (StringUtils.hasText(extractPayload)){
logger.warn("Setting 'extract-payload' attribute ihas no effect when used with MarshallingWebServiceInboundGateway");
if (StringUtils.hasText(extractPayload)) {
logger.warn("Setting 'extract-payload' attribute has no effect when used with a marshalling Web Service Inbound Gateway.");
}
}
String headerMapperRef = element.getAttribute("header-mapper");
if (StringUtils.hasText(headerMapperRef)) {
Assert.isTrue(!StringUtils.hasText(marshallerRef),