130131132133134135136137
.transform(new ObjectToStringTransformer()) .filter((String p) -> p.startsWith("#spring"), f -> f.discardChannel("rejected")) .handle(twitterGate()) .transform("payload[0]") .transform(new ObjectToJsonTransformer()) .get(); }
144145146147148149150
} @Bean @Transformer(inputChannel="toJsonChannel") public org.springframework.integration.transformer.Transformer converttoJson() { return new ObjectToJsonTransformer(); }