@Extension public class BitbucketCloudApiFactory extends BitbucketApiFactory
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
BitbucketCloudApiFactory() |
Modifier and Type | Method and Description |
---|---|
protected BitbucketApi |
create(String serverUrl,
BitbucketAuthenticator authenticator,
String owner,
String repository)
Creates a
BitbucketApi for the specified URL with the supplied credentials, owner and (optional)
repository. |
protected boolean |
isMatch(String serverUrl)
Tests if the supplied URL is supported by this factory.
|
create, newInstance, newInstance
protected boolean isMatch(@Nullable String serverUrl)
BitbucketApiFactory
isMatch
in class BitbucketApiFactory
serverUrl
- the server URL (may be null
, e.g. for Bitbucket Cloud)true
if this factory can connect to the specified URL.@NonNull protected BitbucketApi create(@Nullable String serverUrl, @Nullable BitbucketAuthenticator authenticator, @NonNull String owner, @CheckForNull String repository)
BitbucketApiFactory
BitbucketApi
for the specified URL with the supplied credentials, owner and (optional)
repository.create
in class BitbucketApiFactory
serverUrl
- the server URL.authenticator
- the (optional) authenticator.owner
- the owner name.repository
- the (optional) repository name.BitbucketApi
.Copyright © 2016–2022. All rights reserved.