Class MavenRepositoryURL

    • Constructor Detail

      • MavenRepositoryURL

        public MavenRepositoryURL​(String repositorySpec)
                           throws MalformedURLException
        Creates a maven repository URL bases on a string spec. The path can be marked with @snapshots and/or @noreleases (not case sensitive).
        Parameters:
        repositorySpec - url spec of repository
        Throws:
        MalformedURLException - if spec contains a malformed maven repository url
        org.ops4j.lang.NullArgumentException - if repository spec is null or empty
      • MavenRepositoryURL

        public MavenRepositoryURL​(MavenRepositoryURL parent,
                                  File child)
        Create repository URL with other repositor URL as parent and child which should be child directory of parent.
        Parameters:
        parent -
        child -
    • Method Detail

      • getId

        public String getId()
        Getter.
        Returns:
        repository id
      • getURI

        public URI getURI()
        Getter.
        Returns:
        repository URI
      • getUsername

        public String getUsername()
      • getPassword

        public char[] getPassword()
      • getFile

        public File getFile()
        Getter.
        Returns:
        repository file
      • isReleasesEnabled

        public boolean isReleasesEnabled()
        Getter.
        Returns:
        true if the repository contains releases
      • isSnapshotsEnabled

        public boolean isSnapshotsEnabled()
        Getter.
        Returns:
        true if the repository contains snapshots
      • getReleasesUpdatePolicy

        public String getReleasesUpdatePolicy()
      • getSnapshotsUpdatePolicy

        public String getSnapshotsUpdatePolicy()
      • getReleasesChecksumPolicy

        public String getReleasesChecksumPolicy()
      • getSnapshotsChecksumPolicy

        public String getSnapshotsChecksumPolicy()
      • isMulti

        public boolean isMulti()
        Getter.
        Returns:
        true if the repository is a parent path of repos
      • isFileRepository

        public boolean isFileRepository()
        Getter.
        Returns:
        if the repository is a file based repository.
      • isSplit

        public boolean isSplit()
      • getSplitLocalPrefix

        public String getSplitLocalPrefix()
      • getSplitRemotePrefix

        public String getSplitRemotePrefix()
      • isSplitLocal

        public boolean isSplitLocal()
      • isSplitRemote

        public boolean isSplitRemote()
      • getSplitReleasesPrefix

        public String getSplitReleasesPrefix()
      • getSplitSnapshotsPrefix

        public String getSplitSnapshotsPrefix()
      • isSplitRemoteRepository

        public boolean isSplitRemoteRepository()
      • isSplitRemoteRepositoryLast

        public boolean isSplitRemoteRepositoryLast()