Package com.cdancy.bitbucket.rest
Class BitbucketClient
- java.lang.Object
-
- com.cdancy.bitbucket.rest.BitbucketClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class BitbucketClient extends java.lang.Object implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBitbucketClient.Builder
-
Constructor Summary
Constructors Constructor Description BitbucketClient()Create a BitbucketClient inferring endpoint and authentication from environment and system properties.BitbucketClient(java.lang.String endPoint, BitbucketAuthentication authentication, java.util.Properties overrides, java.util.List<com.google.inject.Module> modules)Create an BitbucketClient.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BitbucketApiapi()AuthenticationTypeauthType()java.lang.StringauthValue()static BitbucketClient.Builderbuilder()voidclose()java.lang.Stringcredentials()Deprecated.java.lang.StringendPoint()java.util.Propertiesoverrides()
-
-
-
Constructor Detail
-
BitbucketClient
public BitbucketClient()
Create a BitbucketClient inferring endpoint and authentication from environment and system properties.
-
BitbucketClient
public BitbucketClient(@Nullable java.lang.String endPoint, @Nullable BitbucketAuthentication authentication, @Nullable java.util.Properties overrides, @Nullable java.util.List<com.google.inject.Module> modules)Create an BitbucketClient. If any of the passed in variables are null we will query System Properties and Environment Variables, in order, to search for values that may be set in a devops/CI fashion. The only difference is the `overrides` which gets merged, but takes precedence, with those System Properties and Environment Variables found.- Parameters:
endPoint- URL of Bitbucket instance.authentication- authentication used to connect to Bitbucket instance.overrides- jclouds Properties to override defaults when creating a new BitbucketApi.modules- a list of modules to be passed to the Contextbuilder, e.g. for logging.
-
-
Method Detail
-
endPoint
public java.lang.String endPoint()
-
credentials
@Deprecated public java.lang.String credentials()
Deprecated.
-
overrides
public java.util.Properties overrides()
-
authValue
public java.lang.String authValue()
-
authType
public AuthenticationType authType()
-
api
public BitbucketApi api()
-
builder
public static BitbucketClient.Builder builder()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-