Class GetPlaygroundJobIdRequestProvider

java.lang.Object
com.cognite.client.servicesV1.request.GetPlaygroundJobIdRequestProvider
All Implemented Interfaces:
RequestProvider, Serializable

public abstract class GetPlaygroundJobIdRequestProvider 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 the Request.
See Also:
  • Field Details

    • apiVersion

      protected static final String apiVersion
      See Also:
    • LOG

      protected final org.slf4j.Logger LOG
    • randomIdString

      protected final String randomIdString
  • Constructor Details

    • GetPlaygroundJobIdRequestProvider

      public GetPlaygroundJobIdRequestProvider()
  • Method Details

    • of

      public static GetPlaygroundJobIdRequestProvider of(String endpoint)
      Returns a request provider that will get job results from a jobId endpoint.
      Returns:
    • toBuilder

      public abstract GetPlaygroundJobIdRequestProvider.Builder toBuilder()
    • withRequest

      public GetPlaygroundJobIdRequestProvider withRequest(Request parameters)
      Description copied from interface: RequestProvider
      Set the baseline Request to build requests from. This is typically the application-provided Request that kicks off a potential series of requests (in the case of iterating over a results set). This baseline Request do 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: RequestProvider
      Builds a request based on the basline RequestParameters provided via the withRequestParameters method. If a cursor is provided, this will typically lead the RequestProvider to modify the underlying Request. In order to get the exact Request used to build the latest request, call the getEffectiveRequestParameters method.
      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()
    • buildGenericRequest

      protected okhttp3.Request.Builder buildGenericRequest() throws URISyntaxException
      Throws:
      URISyntaxException
    • buildGenericUrl

      protected okhttp3.HttpUrl.Builder buildGenericUrl() throws URISyntaxException
      Throws:
      URISyntaxException