Class RemoteRepository

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RemoteRepository.Builder
      A builder to create remote repositories.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Authentication getAuthentication()
      Gets the authentication that has been selected for this repository.
      java.lang.String getContentType()
      Gets the type of the repository, for example "default".
      java.lang.String getHost()
      Gets the host part from the repository's URL.
      java.lang.String getId()
      Gets the identifier of this repository.
      java.util.List<RemoteRepository> getMirroredRepositories()
      Gets the repositories that this repository serves as a mirror for.
      RepositoryPolicy getPolicy​(boolean snapshot)
      Gets the policy to apply for snapshot/release artifacts.
      java.lang.String getProtocol()
      Gets the protocol part from the repository's URL, for example file or http.
      Proxy getProxy()
      Gets the proxy that has been selected for this repository.
      java.lang.String getUrl()
      Gets the (base) URL of this repository.
      int hashCode()  
      boolean isRepositoryManager()
      Indicates whether this repository refers to a repository manager or not.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: ArtifactRepository
        Gets the identifier of this repository.
        Specified by:
        getId in interface ArtifactRepository
        Returns:
        The (case-sensitive) identifier, never null.
      • getUrl

        public java.lang.String getUrl()
        Gets the (base) URL of this repository.
        Returns:
        The (base) URL of this repository, never null.
      • getProtocol

        public java.lang.String getProtocol()
        Gets the protocol part from the repository's URL, for example file or http. As suggested by RFC 2396, section 3.1 "Scheme Component", the protocol name should be treated case-insensitively.
        Returns:
        The protocol or an empty string if none, never null.
      • getHost

        public java.lang.String getHost()
        Gets the host part from the repository's URL.
        Returns:
        The host or an empty string if none, never null.
      • getPolicy

        public RepositoryPolicy getPolicy​(boolean snapshot)
        Gets the policy to apply for snapshot/release artifacts.
        Parameters:
        snapshot - true to retrieve the snapshot policy, false to retrieve the release policy.
        Returns:
        The requested repository policy, never null.
      • getProxy

        public Proxy getProxy()
        Gets the proxy that has been selected for this repository.
        Returns:
        The selected proxy or null if none.
      • getAuthentication

        public Authentication getAuthentication()
        Gets the authentication that has been selected for this repository.
        Returns:
        The selected authentication or null if none.
      • getMirroredRepositories

        public java.util.List<RemoteRepositorygetMirroredRepositories()
        Gets the repositories that this repository serves as a mirror for.
        Returns:
        The (read-only) repositories being mirrored by this repository, never null.
      • isRepositoryManager

        public boolean isRepositoryManager()
        Indicates whether this repository refers to a repository manager or not.
        Returns:
        true if this repository is a repository manager, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object