Class BitbucketServerApiFactory

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketApiFactory
com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerApiFactory
All Implemented Interfaces:
ExtensionPoint

@Extension(ordinal=-1000.0) public class BitbucketServerApiFactory extends BitbucketApiFactory
  • Constructor Details

    • BitbucketServerApiFactory

      public BitbucketServerApiFactory()
  • Method Details

    • isMatch

      protected boolean isMatch(@Nullable String serverUrl)
      Description copied from class: BitbucketApiFactory
      Tests if the supplied URL is supported by this factory.
      Specified by:
      isMatch in class BitbucketApiFactory
      Parameters:
      serverUrl - the server URL (may be null, e.g. for Bitbucket Cloud)
      Returns:
      true if this factory can connect to the specified URL.
    • create

      @NonNull protected BitbucketApi create(@Nullable String serverUrl, @Nullable BitbucketAuthenticator authenticator, @NonNull String owner, @CheckForNull String projectKey, @CheckForNull String repository)
      Description copied from class: BitbucketApiFactory
      Creates a BitbucketApi for the specified URL with the supplied credentials, owner and (optional) repository.
      Specified by:
      create in class BitbucketApiFactory
      Parameters:
      serverUrl - the server URL.
      authenticator - the (optional) authenticator.
      owner - the owner name.
      projectKey - the (optional) project key.
      repository - the (optional) repository name.
      Returns:
      the BitbucketApi.