Class GetJobIdRequestProvider
- java.lang.Object
-
- com.cognite.client.servicesV1.request.GetJobIdRequestProvider
-
- All Implemented Interfaces:
RequestProvider,Serializable
public abstract class GetJobIdRequestProvider extends Object
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 theRequest.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetJobIdRequestProvider.Builder
-
Field Summary
Fields Modifier and Type Field Description protected static StringapiVersionprotected org.slf4j.LoggerLOGprotected StringrandomIdString
-
Constructor Summary
Constructors Constructor Description GetJobIdRequestProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected okhttp3.Request.BuilderbuildGenericRequest()protected okhttp3.HttpUrl.BuilderbuildGenericUrl()okhttp3.RequestbuildRequest(Optional<String> cursor)Builds a request based on the baslineRequestParametersprovided via thewithRequestParametersmethod.abstract StringgetAppIdentifier()abstract StringgetEndpoint()abstract RequestgetRequest()abstract StringgetSdkIdentifier()abstract StringgetSessionIdentifier()abstract booleanisBetaEnabled()static GetJobIdRequestProviderof(String endpoint)Returns a request provider that will get job results from a jobId endpoint.abstract GetJobIdRequestProvider.BuildertoBuilder()GetJobIdRequestProviderwithRequest(Request parameters)Set the baselineRequestto build requests from.
-
-
-
Field Detail
-
apiVersion
protected static final String apiVersion
- See Also:
- Constant Field Values
-
LOG
protected final org.slf4j.Logger LOG
-
randomIdString
protected final String randomIdString
-
-
Method Detail
-
of
public static GetJobIdRequestProvider of(String endpoint)
Returns a request provider that will get job results from a jobId endpoint.- Returns:
-
toBuilder
public abstract GetJobIdRequestProvider.Builder toBuilder()
-
withRequest
public GetJobIdRequestProvider withRequest(Request parameters)
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
public okhttp3.Request buildRequest(Optional<String> cursor) throws URISyntaxException
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
public abstract String getSdkIdentifier()
-
getAppIdentifier
public abstract String getAppIdentifier()
-
getSessionIdentifier
public abstract String getSessionIdentifier()
-
getEndpoint
public abstract String getEndpoint()
-
getRequest
public abstract Request getRequest()
-
isBetaEnabled
public abstract boolean isBetaEnabled()
-
buildGenericRequest
protected okhttp3.Request.Builder buildGenericRequest() throws URISyntaxException- Throws:
URISyntaxException
-
buildGenericUrl
protected okhttp3.HttpUrl.Builder buildGenericUrl() throws URISyntaxException- Throws:
URISyntaxException
-
-