Created
October 29, 2015 17:38
-
-
Save dalmat36/73be1f8f29f3ef491db6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package blog; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.integration.core.MessageSource; | |
import org.springframework.integration.support.MessageBuilder; | |
import org.springframework.messaging.Message; | |
public class RssReader implements MessageSource<String> { | |
private static Logger logger = LoggerFactory.getLogger(RssReader.class); | |
public Message<String> receive() { | |
logger.debug("readRssFeed method is called"); | |
return MessageBuilder.withPayload("test").setHeader("feedid", "thefeed").build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment