You just need to implement the ItemReader interface. For instance:
public MyReader implements ItemReader<YourClass> { @Override public YourClass read() throws Exception, UnexpectedInputException, ParseException, NonTransientResourceException {
this simple class will return your data and just stop reading when all the request data is received,
I hope this helps you or other users :)
source share