Class ApiHttpUrlBuilderUtils


  • public class ApiHttpUrlBuilderUtils
    extends Object
    • Constructor Detail

      • ApiHttpUrlBuilderUtils

        public ApiHttpUrlBuilderUtils()
    • 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