Class DirectArtifactURLBuilder

  • All Implemented Interfaces:
    IArtifactURLBuilder

    public class DirectArtifactURLBuilder
    extends AbstractArtifactURLBuilder
    implements IArtifactURLBuilder
    Provides functionality to retrieve an artifact as a direct link from the repository, such as: https://server/content/repositories/repositoryId/com/thegroup/id/artifactId/version/artifactId-42.tar.gz Limitations: This implementation does not work for snapshots.
    Author:
    stephan.watermeyer, Diebold Nixdorf
    • Constructor Detail

      • DirectArtifactURLBuilder

        public DirectArtifactURLBuilder()
    • Method Detail

      • build

        public String build​(boolean pOnlyBaseURL)
        Description copied from interface: IArtifactURLBuilder
        Based on the given details the URL for the artifact is created.
        Specified by:
        build in interface IArtifactURLBuilder
        Parameters:
        pOnlyBaseURL - true if only the URI should be returned.
        Returns:
        the URL or the folder where the artifact can be found or downloaded.