Class ArtifactProvider

  • All Implemented Interfaces:
    com.zebrunner.carina.commons.artifact.IArtifactManager

    public final class ArtifactProvider
    extends java.lang.Object
    implements com.zebrunner.carina.commons.artifact.IArtifactManager
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(java.lang.String url)  
      boolean download​(java.lang.String from, java.nio.file.Path to)  
      java.lang.String getDirectLink​(java.lang.String url)  
      static com.zebrunner.carina.commons.artifact.IArtifactManager getInstance()  
      boolean put​(java.nio.file.Path from, java.lang.String to)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArtifactProvider

        public ArtifactProvider()
    • Method Detail

      • getInstance

        public static com.zebrunner.carina.commons.artifact.IArtifactManager getInstance()
      • download

        public boolean download​(java.lang.String from,
                                java.nio.file.Path to)
        Specified by:
        download in interface com.zebrunner.carina.commons.artifact.IArtifactManager
      • put

        public boolean put​(java.nio.file.Path from,
                           java.lang.String to)
                    throws java.io.FileNotFoundException
        Specified by:
        put in interface com.zebrunner.carina.commons.artifact.IArtifactManager
        Throws:
        java.io.FileNotFoundException
      • delete

        public boolean delete​(java.lang.String url)
        Specified by:
        delete in interface com.zebrunner.carina.commons.artifact.IArtifactManager
      • getDirectLink

        public java.lang.String getDirectLink​(java.lang.String url)
        Specified by:
        getDirectLink in interface com.zebrunner.carina.commons.artifact.IArtifactManager