Class GetJobIdRequestProvider
java.lang.Object
com.cognite.client.servicesV1.request.GetJobIdRequestProvider
- All Implemented Interfaces:
RequestProvider,Serializable
Builds request to get results from an async api job based on a jobId.
Used by various context api services as most context services are based on an async api pattern.
Job id is specified via the
Request.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected okhttp3.Request.Builderprotected okhttp3.HttpUrl.Builderokhttp3.RequestbuildRequest(Optional<String> cursor) Builds a request based on the baslineRequestParametersprovided via thewithRequestParametersmethod.abstract Stringabstract Stringabstract Requestabstract Stringabstract Stringabstract booleanstatic GetJobIdRequestProviderReturns a request provider that will get job results from a jobId endpoint.abstract GetJobIdRequestProvider.BuilderwithRequest(Request parameters) Set the baselineRequestto build requests from.
-
Field Details
-
apiVersion
- See Also:
-
LOG
protected final org.slf4j.Logger LOG -
randomIdString
-
-
Constructor Details
-
GetJobIdRequestProvider
public GetJobIdRequestProvider()
-
-
Method Details
-
of
Returns a request provider that will get job results from a jobId endpoint.- Returns:
-
toBuilder
-
withRequest
Description copied from interface:RequestProviderSet 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.- Returns:
-
buildRequest
Description copied from interface:RequestProviderBuilds 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.- Returns:
- Throws:
URISyntaxException
-
getSdkIdentifier
-
getAppIdentifier
-
getSessionIdentifier
-
getEndpoint
-
getRequest
-
isBetaEnabled
public abstract boolean isBetaEnabled() -
buildGenericRequest
- Throws:
URISyntaxException
-
buildGenericUrl
- Throws:
URISyntaxException
-