Class HttpXarSource


  • public class HttpXarSource
    extends XarSource
    Represents an eXtensible ARchiver using a URL.
    • Constructor Detail

      • HttpXarSource

        public HttpXarSource​(String url)
        Create a new XarSource from a url. This constructor uses a default, non-shared OkHttpClient.
        Parameters:
        url - the URL referencing the archive file
      • HttpXarSource

        public HttpXarSource​(String url,
                             okhttp3.OkHttpClient okHttpClient)
        Create a new XarSource from a url. It is recommended to create and manage a global, shared OkHttpClient instance for optimal overall performance. If okHttpClient is null, a default, non-shared OkHttpClient is used.
        Parameters:
        url - the URL referencing the archive file
        okHttpClient - the OkHttpClient to use or null to use the default one