Class NexusContentServiceArtifactURLBuilder

  • All Implemented Interfaces:
    IArtifactURLBuilder

    public class NexusContentServiceArtifactURLBuilder
    extends AbstractArtifactURLBuilder
    implements IArtifactURLBuilder
    This implementation creates a download link for the given artifact by using an inbuild Nexus service. So this implementation uses the RESTful interface of Nexus to submit the artifact details to the service, and the Nexus service will return the artifact.
    Example: Example
    Further documentation: Sonatype Support
    Author:
    stephan.watermeyer, Diebold Nixdorf
    • Constructor Detail

      • NexusContentServiceArtifactURLBuilder

        public NexusContentServiceArtifactURLBuilder()
    • 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.