com.univocity.parsers.remote
Interface NextInputHandler<C extends RemoteContext>


public interface NextInputHandler<C extends RemoteContext>

Callback class used to determine how the remote content should be accessed. Used to provide information about pagination and link following processes, provided by a RemoteContext, through the invocation of the prepareNextCall(RemoteContext) method. Users can for example manipulate the remote request to control how the next page should be fetched by modifying the HTTP request configuration before accessing the next page of data.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
RemoteContext, RemoteFollower, Paginator, PaginationContext

Method Summary
 void prepareNextCall(C remoteContext)
          Method invoked by the parser when a new HTTP request to fetch a remote resource must be performed.
 

Method Detail

prepareNextCall

void prepareNextCall(C remoteContext)
Method invoked by the parser when a new HTTP request to fetch a remote resource must be performed. Users can use this method to prepare the remote call and to obtain more information about the process.

Parameters:
remoteContext - the RemoteContext used to get information from the current and the next remote HTTP request.


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.