Class SerializableArtifactData
- java.lang.Object
-
- jetbrains.buildServer.artifacts.util.SerializableArtifactData
-
- All Implemented Interfaces:
ArtifactData
public final class SerializableArtifactData extends Object implements ArtifactData
Utility class corresponding to a single artifact entry in an artifacts list file- Since:
- 2022.1
- Author:
- vbedrosova
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPath()Returns relative path of this artifactMap<String,String>getProperties()Returns custom artifact properties provided by the implementation, e.g.longgetSize()Returns artifact size in bytesStringgetUrl()Returns http download URL (getProperties value forArtifactDataInstance.URL_KEY) of this artifact if available.inthashCode()static SerializableArtifactDatatoSerializableArtifactData(ArtifactData artifact)Constructs an instance from an instance ofArtifactData
-
-
-
Method Detail
-
toSerializableArtifactData
@NotNull public static SerializableArtifactData toSerializableArtifactData(@NotNull ArtifactData artifact)
Constructs an instance from an instance ofArtifactData- Parameters:
artifact- artifact data to be used as a source- Returns:
- an instance of this class
-
getPath
@NotNull public String getPath()
Returns relative path of this artifact- Specified by:
getPathin interfaceArtifactData- Returns:
- see above
-
getUrl
@Nullable public String getUrl()
Returns http download URL (getProperties value forArtifactDataInstance.URL_KEY) of this artifact if available. If no URL available, eitherArtifactDownloadProcessororArtifactContentProviderextension will be used.- Specified by:
getUrlin interfaceArtifactData- Returns:
- see above
-
getSize
public long getSize()
Returns artifact size in bytes- Specified by:
getSizein interfaceArtifactData- Returns:
- see above
-
getProperties
@NotNull public Map<String,String> getProperties()
Returns custom artifact properties provided by the implementation, e.g.ArtifactDataInstance.URL_KEY- Specified by:
getPropertiesin interfaceArtifactData- Returns:
- see above
-
-