From 403650f6cdaa201b02bb4f2e5c3e222f1c19940a Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 21 Jul 2017 10:38:27 -0400 Subject: [PATCH] Fix compatibility with the latest SI --- .../samples/si4demo/annotations/Application.java | 7 +++++-- .../integration/samples/si4demo/dsl/Application.java | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/annotations/Application.java b/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/annotations/Application.java index b8216dcf..ea7246ae 100644 --- a/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/annotations/Application.java +++ b/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/annotations/Application.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2017 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.samples.si4demo.annotations; import org.springframework.beans.factory.annotation.Autowired; @@ -59,6 +60,8 @@ import org.springframework.social.twitter.api.impl.TwitterTemplate; * * * @author Gary Russell + * @author Artem Bilan + * * @since 4.0 * */ @@ -97,7 +100,7 @@ public class Application { mapping.setPathPatterns("/foo"); gateway.setRequestMapping(mapping); gateway.setRequestChannel(requestChannel()); - gateway.setRequestPayloadType(byte[].class); + gateway.setRequestPayloadTypeClass(byte[].class); return gateway; } diff --git a/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/dsl/Application.java b/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/dsl/Application.java index 15a1e115..5b3049de 100644 --- a/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/dsl/Application.java +++ b/dsl/si4demo/src/main/java/org/springframework/integration/samples/si4demo/dsl/Application.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2014-2017 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.samples.si4demo.dsl; import java.util.Scanner; @@ -64,7 +65,10 @@ import org.springframework.social.twitter.api.impl.TwitterTemplate; * * * It also supports typing a hashtag into the console. + * * @author Gary Russell + * @author Artem Bilan + * * @since 4.0 * */ @@ -114,7 +118,7 @@ public class Application { mapping.setPathPatterns("/foo"); gateway.setRequestMapping(mapping); gateway.setRequestChannel(requestChannel()); - gateway.setRequestPayloadType(byte[].class); + gateway.setRequestPayloadTypeClass(byte[].class); return gateway; }