Class SimpleHttpArtifactCredentials<T extends ArtifactAccount>
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.artifacts.config.BaseHttpArtifactCredentials<T>
-
- com.netflix.spinnaker.clouddriver.artifacts.config.SimpleHttpArtifactCredentials<T>
-
- Direct Known Subclasses:
BitbucketArtifactCredentials,GitHubArtifactCredentials,GitlabArtifactCredentials,HttpArtifactCredentials,JenkinsArtifactCredentials
public abstract class SimpleHttpArtifactCredentials<T extends ArtifactAccount> extends BaseHttpArtifactCredentials<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleHttpArtifactCredentials(com.squareup.okhttp.OkHttpClient okHttpClient, T account)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamdownload(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact)protected com.squareup.okhttp.HttpUrlgetDownloadUrl(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact)-
Methods inherited from class com.netflix.spinnaker.clouddriver.artifacts.config.BaseHttpArtifactCredentials
fetchUrl, fetchUrl, getHeaders, parseUrl
-
-
-
-
Constructor Detail
-
SimpleHttpArtifactCredentials
protected SimpleHttpArtifactCredentials(com.squareup.okhttp.OkHttpClient okHttpClient, T account)
-
-
Method Detail
-
getDownloadUrl
protected com.squareup.okhttp.HttpUrl getDownloadUrl(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact) throws java.io.IOException- Throws:
java.io.IOException
-
download
public final java.io.InputStream download(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact) throws java.io.IOException- Throws:
java.io.IOException
-
-