Class BitbucketFilePathClientImpl

java.lang.Object
com.atlassian.bitbucket.jenkins.internal.client.BitbucketFilePathClientImpl
All Implemented Interfaces:
BitbucketFilePathClient

public class BitbucketFilePathClientImpl extends Object implements BitbucketFilePathClient
  • Constructor Details

  • Method Details

    • getDirectoryContent

      public List<jenkins.scm.api.SCMFile> getDirectoryContent(BitbucketSCMFile directory)
      Description copied from interface: BitbucketFilePathClient
      Retrieves the list of all files and directories that can be found.
      Specified by:
      getDirectoryContent in interface BitbucketFilePathClient
      Parameters:
      directory - the directory to retrieve
      Returns:
      a list of all SCMFiles directly contained in the directory
    • getFileType

      public jenkins.scm.api.SCMFile.Type getFileType(String path, String ref)
      Description copied from interface: BitbucketFilePathClient
      Retrieves the file type for the specified file path and ref.
      Specified by:
      getFileType in interface BitbucketFilePathClient
      Parameters:
      path - the path of the file or directory to retrieve
      ref - The commit ID or ref to retrieve the file for
      Returns:
      the type for the specified file
    • getRawFileStream

      public InputStream getRawFileStream(BitbucketSCMFile scmFile)
      Description copied from interface: BitbucketFilePathClient
      Retrieve the bytes of a file in a repository. The bytes are encapsulated in an InputStream object. The caller of this method is responsible for closing the stream.
      Specified by:
      getRawFileStream in interface BitbucketFilePathClient
      Parameters:
      scmFile - the file to retrieve
      Returns:
      the bytes of the file in an InputStream object.