Class RawReadRowsRequestProvider
- java.lang.Object
-
- com.cognite.client.servicesV1.request.RawReadRowsRequestProvider
-
- All Implemented Interfaces:
RequestProvider
,Serializable
public abstract class RawReadRowsRequestProvider extends Object
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RawReadRowsRequestProvider.Builder
-
Field Summary
Fields Modifier and Type Field Description protected static String
apiVersion
protected org.slf4j.Logger
LOG
protected String
randomIdString
-
Constructor Summary
Constructors Constructor Description RawReadRowsRequestProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static RawReadRowsRequestProvider.Builder
builder()
protected okhttp3.Request.Builder
buildGenericRequest()
protected okhttp3.HttpUrl.Builder
buildGenericUrl()
okhttp3.Request
buildRequest(Optional<String> cursor)
Builds a request based on the baslineRequestParameters
provided via thewithRequestParameters
method.abstract String
getAppIdentifier()
abstract String
getEndpoint()
abstract Request
getRequest()
abstract String
getSdkIdentifier()
abstract String
getSessionIdentifier()
abstract boolean
isBetaEnabled()
abstract RawReadRowsRequestProvider.Builder
toBuilder()
RawReadRowsRequestProvider
withRequest(Request parameters)
Set the baselineRequest
to 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
-
builder
public static RawReadRowsRequestProvider.Builder builder()
-
toBuilder
public abstract RawReadRowsRequestProvider.Builder toBuilder()
-
withRequest
public RawReadRowsRequestProvider withRequest(Request parameters)
Description copied from interface:RequestProvider
Set the baselineRequest
to build requests from. This is typically the application-providedRequest
that kicks off a potential series of requests (in the case of iterating over a results set). This baselineRequest
do not change over the life-cycle of a request-response series.- Returns:
-
buildRequest
public okhttp3.Request buildRequest(Optional<String> cursor) throws IOException, URISyntaxException
Description copied from interface:RequestProvider
Builds a request based on the baslineRequestParameters
provided via thewithRequestParameters
method. If a cursor is provided, this will typically lead theRequestProvider
to modify the underlyingRequest
. In order to get the exactRequest
used to build the latest request, call thegetEffectiveRequestParameters
method.- Returns:
- Throws:
IOException
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
-
-