diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayInvokingMessageHandler.java b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayInvokingMessageHandler.java index c4d68a941f..cf0303b49f 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayInvokingMessageHandler.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayInvokingMessageHandler.java @@ -30,12 +30,12 @@ import org.springframework.util.Assert; */ public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessageHandler { - private GenericSendAndRecieveGateway gateway; + private GenericSendAndReceiveGateway gateway; /** * @param gateway */ - public GatewayInvokingMessageHandler(GenericSendAndRecieveGateway gateway) { + public GatewayInvokingMessageHandler(GenericSendAndReceiveGateway gateway) { Assert.notNull(gateway, "gateway must not be null"); this.gateway = gateway; } @@ -49,7 +49,7 @@ public class GatewayInvokingMessageHandler extends AbstractReplyProducingMessage * Will simply delegate to the original gateway */ protected Object handleRequestMessage(Message requestMessage) { - return gateway.sendAndRecieve(requestMessage); + return gateway.sendAndReceive(requestMessage); } } diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java index bf40ae9725..2e06f359ff 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java @@ -170,7 +170,7 @@ public class GatewayProxyFactoryBean extends AbstractEndpoint implements Factory private Class determineServiceInterface() { if (this.serviceInterface == null) { - this.serviceInterface = GenericSendAndRecieveGateway.class; + this.serviceInterface = GenericSendAndReceiveGateway.class; } return this.serviceInterface; } diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndRecieveGateway.java b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndReceiveGateway.java similarity index 85% rename from org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndRecieveGateway.java rename to org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndReceiveGateway.java index b45347f214..01c800d109 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndRecieveGateway.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/GenericSendAndReceiveGateway.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.integration.gateway; import org.springframework.integration.core.Message; @@ -24,7 +25,8 @@ import org.springframework.integration.core.Message; * @author Oleg Zhurakousky * @since 2.0 */ -interface GenericSendAndRecieveGateway { +interface GenericSendAndReceiveGateway { + + public Message sendAndReceive(Message message); - public Message sendAndRecieve(Message message); }