Interface ArtifactContentProvider
-
- All Superinterfaces:
TeamCityExtension
public interface ArtifactContentProvider extends TeamCityExtension
Extension that allows to get stored artifact content for some storage type- Since:
- 2017.1
- See Also:
ArtifactStorageType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetContent(StoredBuildArtifactInfo artifactInfo)StringgetType()Supported artifact storage type that should match the correspondingArtifactStorageType.getType()
-
-
-
Method Detail
-
getType
@NotNull String getType()
Supported artifact storage type that should match the correspondingArtifactStorageType.getType()- Returns:
- see above
-
getContent
@NotNull InputStream getContent(@NotNull StoredBuildArtifactInfo artifactInfo) throws IOException
- Parameters:
artifactInfo- artifact data with storage settings- Returns:
- input stream for an artifact. Client must close the stream at the end of reading.
- Throws:
IOException- if the artifact has no content or if some error occurs.- See Also:
ArtifactListData
-
-