Below is the configuration of HttpRequestExecutingMessageHandler
@Bean
@ServiceActivator(inputChannel = "httpRequestChannel")
public HttpRequestExecutingMessageHandler httpRequestExecutingMessageHandler() {
HttpRequestExecutingMessageHandler handler = new HttpRequestExecutingMessageHandler(serviceUrl);
handler.setCharset(StandardCharsets.UTF_8.displayName());
handler.setOutputChannel(httpResponseChannel());
handler.setExpectedResponseType(String.class);
return handler;
}
How should i configure httpResponseChannel to handle the httpResponse. I want to move origin file to success folder if http status code is 201 or to error folder for rest.
I'm using spring integration 5 with spring boot together.