Class BitbucketServerApiFactory
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketApiFactory
com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerApiFactory
- All Implemented Interfaces:
ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BitbucketApicreate(String serverURL, BitbucketAuthenticator authenticator, String owner, String projectKey, String repository) Creates aBitbucketApifor the specified URL with the supplied credentials, owner and (optional) repository.protected booleanTests if the supplied URL is supported by this factory.Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketApiFactory
create, newInstance
-
Constructor Details
-
BitbucketServerApiFactory
public BitbucketServerApiFactory()
-
-
Method Details
-
isMatch
Description copied from class:BitbucketApiFactoryTests if the supplied URL is supported by this factory.- Specified by:
isMatchin classBitbucketApiFactory- Parameters:
serverUrl- the server URL (may benull, e.g. for Bitbucket Cloud)- Returns:
trueif 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:BitbucketApiFactoryCreates aBitbucketApifor the specified URL with the supplied credentials, owner and (optional) repository.- Specified by:
createin classBitbucketApiFactory- 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.
-