Class ApiHttpUrlBuilderUtils
- java.lang.Object
-
- com.cognite.client.servicesV1.util.ApiHttpUrlBuilderUtils
-
public class ApiHttpUrlBuilderUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ApiHttpUrlBuilderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
-
-