Class GetPlaygroundRequestProvider
- java.lang.Object
-
- com.cognite.client.servicesV1.request.GetPlaygroundRequestProvider
-
- All Implemented Interfaces:
RequestProvider,Serializable
public abstract class GetPlaygroundRequestProvider extends Object
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetPlaygroundRequestProvider.Builder
-
Field Summary
Fields Modifier and Type Field Description protected static StringapiVersionprotected org.slf4j.LoggerLOGprotected StringrandomIdString
-
Constructor Summary
Constructors Constructor Description GetPlaygroundRequestProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GetPlaygroundRequestProvider.Builderbuilder()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 GetPlaygroundRequestProvider.BuildertoBuilder()GetPlaygroundRequestProviderwithRequest(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
-
builder
public static GetPlaygroundRequestProvider.Builder builder()
-
toBuilder
public abstract GetPlaygroundRequestProvider.Builder toBuilder()
-
withRequest
public GetPlaygroundRequestProvider 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 IOException, 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:
IOExceptionURISyntaxException
-
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
-
-