Class BitbucketFilePathClientImpl
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.client.BitbucketFilePathClientImpl
 
 
- 
- All Implemented Interfaces:
 BitbucketFilePathClient
public class BitbucketFilePathClientImpl extends Object implements BitbucketFilePathClient
 
- 
- 
Constructor Summary
Constructors Constructor Description BitbucketFilePathClientImpl(BitbucketRequestExecutor bitbucketRequestExecutor, String projectKey, String repositorySlug) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<jenkins.scm.api.SCMFile>getDirectoryContent(BitbucketSCMFile directory)Retrieves the list of all files and directories that can be found.jenkins.scm.api.SCMFile.TypegetFileType(String path, String ref)Retrieves thefile typefor the specified file path and ref.InputStreamgetRawFileStream(BitbucketSCMFile scmFile)Retrieve the bytes of a file in a repository. 
 - 
 
- 
- 
Constructor Detail
- 
BitbucketFilePathClientImpl
public BitbucketFilePathClientImpl(BitbucketRequestExecutor bitbucketRequestExecutor, String projectKey, String repositorySlug)
 
 - 
 
- 
Method Detail
- 
getDirectoryContent
public List<jenkins.scm.api.SCMFile> getDirectoryContent(BitbucketSCMFile directory)
Description copied from interface:BitbucketFilePathClientRetrieves the list of all files and directories that can be found.- Specified by:
 getDirectoryContentin interfaceBitbucketFilePathClient- 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:BitbucketFilePathClientRetrieves thefile typefor the specified file path and ref.- Specified by:
 getFileTypein interfaceBitbucketFilePathClient- Parameters:
 path- the path of the file or directory to retrieveref- The commit ID or ref to retrieve the file for- Returns:
 - the 
typefor the specified file 
 
- 
getRawFileStream
public InputStream getRawFileStream(BitbucketSCMFile scmFile)
Description copied from interface:BitbucketFilePathClientRetrieve the bytes of a file in a repository. The bytes are encapsulated in anInputStreamobject. The caller of this method is responsible for closing the stream.- Specified by:
 getRawFileStreamin interfaceBitbucketFilePathClient- Parameters:
 scmFile- the file to retrieve- Returns:
 - the bytes of the file in an 
InputStreamobject. 
 
 - 
 
 -