Class BitbucketApiFactory

    • Constructor Detail

      • BitbucketApiFactory

        public BitbucketApiFactory()
    • Method Detail

      • handles

        public abstract boolean handles​(@NonNull
                                        String scmId)
        Returns:
        true if this factory can handle this scmId
      • create

        @NonNull
        public abstract BitbucketApi create​(@NonNull
                                            String apiUrl,
                                            @NonNull
                                            com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
        Create BitbucketApi instance. Before calling this method, clients must ensure handles(String) is called first and returned true
        Parameters:
        apiUrl - API url (host url) of bitbucket server or cloud. e.g. https://mybitbucketserver.com/
        credentials - StandardUsernamePasswordCredentials
        Returns:
        BitbucketApi instance