Class ApiHttpUrlBuilderUtils

java.lang.Object
com.cognite.client.servicesV1.util.ApiHttpUrlBuilderUtils

public class ApiHttpUrlBuilderUtils extends Object
  • 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