Class URLRemoteRepository

  • All Implemented Interfaces:
    Repository

    public class URLRemoteRepository
    extends ProxyRepository
    Proxy for a remote repository accessed via a URL. The configured URL is dereferenced lazily during each method call. Thus the resource pointed to by the URL does not need to exist when this class is instantiated. The resource can also be replaced with another remote repository instance during the lifetime of an instance of this class.
    Since:
    1.4
    • Constructor Detail

      • URLRemoteRepository

        public URLRemoteRepository​(LocalAdapterFactory factory,
                                   URL url)
        Creates a proxy for the remote repository at the given URL.
        Parameters:
        factory - local adapter factory
        url - URL of the remote repository
      • URLRemoteRepository

        public URLRemoteRepository​(URL url)
        Creates a proxy for the remote repository at the given URL. Uses ClientAdapterFactory as the default local adapter factory.
        Parameters:
        url - URL of the remote repository