Package com.cdancy.artifactory.rest
Class ArtifactoryClient
- java.lang.Object
-
- com.cdancy.artifactory.rest.ArtifactoryClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class ArtifactoryClient extends Object implements Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArtifactoryClient.Builder
-
Constructor Summary
Constructors Constructor Description ArtifactoryClient()Create a ArtifactoryClient inferring endpoint and authentication from environment and system properties.ArtifactoryClient(String endPoint, ArtifactoryAuthentication authentication, Properties overrides)Create an ArtifactoryClient.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArtifactoryApiapi()AuthenticationTypeauthType()StringauthValue()static ArtifactoryClient.Builderbuilder()voidclose()Stringcredentials()Deprecated.StringendPoint()Propertiesoverrides()
-
-
-
Constructor Detail
-
ArtifactoryClient
public ArtifactoryClient()
Create a ArtifactoryClient inferring endpoint and authentication from environment and system properties.
-
ArtifactoryClient
public ArtifactoryClient(@Nullable String endPoint, @Nullable ArtifactoryAuthentication authentication, @Nullable Properties overrides)
Create an ArtifactoryClient. 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 Artifactory instance.authentication- authentication used to connect to Artifactory instance.overrides- jclouds Properties to override defaults when creating a new ArtifactoryApi.
-
-
Method Detail
-
endPoint
public String endPoint()
-
credentials
@Deprecated public String credentials()
Deprecated.
-
overrides
public Properties overrides()
-
authValue
public String authValue()
-
authType
public AuthenticationType authType()
-
api
public ArtifactoryApi api()
-
builder
public static ArtifactoryClient.Builder builder()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-