Class ApiHttpUrlBuilderUtils
java.lang.Object
com.cognite.client.servicesV1.util.ApiHttpUrlBuilderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic okhttp3.HttpUrl.BuilderdefaultAPIEndpointBuilder(Request request, String endpoint, String apiVersion) Returns a HttpUrl.Builder pre-filled with the host address, the resource and the endpoint for the given inner parameters.static okhttp3.HttpUrl.BuilderdefaultHostURLBuilder(Request request, String endpoint) Returns a HttpUrl.Builder pre-filled with the host address.
-
Constructor Details
-
ApiHttpUrlBuilderUtils
public ApiHttpUrlBuilderUtils()
-
-
Method Details
-
defaultHostURLBuilder
public static okhttp3.HttpUrl.Builder defaultHostURLBuilder(Request request, String endpoint) throws URISyntaxException Returns a HttpUrl.Builder pre-filled with the host address.- Returns:
- HttpUrl.Builder
- Throws:
URISyntaxException
-
defaultAPIEndpointBuilder
public static okhttp3.HttpUrl.Builder defaultAPIEndpointBuilder(Request request, String endpoint, String apiVersion) throws URISyntaxException Returns a HttpUrl.Builder pre-filled with the host address, the resource and the endpoint for the given inner parameters.- Returns:
- HttpUrl.Builder
- Throws:
URISyntaxException
-