Class RemoteRepository

    • Constructor Detail

      • RemoteRepository

        protected RemoteRepository​(java.lang.String name,
                                   java.net.URI uri)
        (Internal) Constructs a remote repository.

        Use Repository.newInstance(String, String).

        Parameters:
        name - the repository name
        uri - the repository location
    • Method Detail

      • isRemote

        public boolean isRemote()
        Returns whether the repository is remote repository.
        Returns:
        whether the repository is remote repository
      • locate

        public Metadata locate​(MRL mrl)
                        throws java.io.IOException
        Returns the metadata at a mrl.
        Parameters:
        mrl - the mrl of the metadata to retrieve
        Returns:
        the metadata
        Throws:
        java.io.IOException - if it failed to load the metadata
      • resolve

        public Artifact resolve​(MRL mrl,
                                java.util.Map<java.lang.String,​java.lang.String> filter)
                         throws java.io.IOException
        Returns the artifact matching a mrl, version, and property filter.
        Parameters:
        mrl - the mrl to match the artifact against
        filter - the property filter
        Returns:
        the matched artifact
        Throws:
        java.io.IOException - if it failed to load the artifact
      • getResources

        public java.util.List<MRL> getResources()
        Returns a list of MRLs in the repository.

        An empty list will be returned if underlying Repository implementation does not support this feature.

        Returns:
        a list of MRLs in the repository