Interface RequestProvider
- All Known Implementing Classes:
FilesUploadRequestProvider,GetIdRequestProvider,GetJobIdRequestProvider,GetListRequestProvider,GetLoginRequestProvider,GetPlaygroundJobIdRequestProvider,GetPlaygroundRequestProvider,GetSimpleListRequestProvider,PostJsonListRequestProvider,PostJsonRequestProvider,PostPlaygroundJsonListRequestProvider,PostPlaygroundJsonRequestProvider,RawDeleteRowsRequestProvider,RawReadRowsCursorsRequestProvider,RawReadRowsRequestProvider,RawWriteRowsRequestProvider,RawWriteTablesRequestProvider,ThreeDAncestorNodesRequestProvider,ThreeDAssetMappingsFilterRequestProvider,ThreeDAssetMappingsRequestProvider,ThreeDNodesFilterRequestProvider,ThreeDNodesRequestProvider,ThreeDOutputsRequestProvider,ThreeDRequestProvider,ThreeDRevisionLogsRequestProvider,TSPointsReadProtoCursorsRequestProvider,TSPointsRequestProvider,TSPointsWriteProtoRequestProvider
public interface RequestProvider
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.RequestbuildRequest(Optional<String> cursor) Builds a request based on the baslineRequestParametersprovided via thewithRequestParametersmethod.withRequest(Request requestParameters) Set the baselineRequestto build requests from.
-
Method Details
-
withRequest
Set the baselineRequestto build requests from. This is typically the application-providedRequestthat kicks off a potential series of requests (in the case of iterating over a results set). This baselineRequestdo not change over the life-cycle of a request-response series.- Parameters:
requestParameters-- Returns:
-
buildRequest
Builds a request based on the baslineRequestParametersprovided via thewithRequestParametersmethod. If a cursor is provided, this will typically lead theRequestProviderto modify the underlyingRequest. In order to get the exactRequestused to build the latest request, call thegetEffectiveRequestParametersmethod.- Parameters:
cursor-- Returns:
- Throws:
Exception
-