Class ArtifactAndData
java.lang.Object
com.xebialabs.deployit.engine.api.dto.AbstractDto
com.xebialabs.deployit.engine.api.dto.ArtifactAndData
The parameter object for certain REST API and it represents both the artifact CI and its data.
Artifacts are uploaded to the XL Deploy Server as a multipart HTTP request.
It consists of the following parts:
- configurationItem
- The property data of the artifact in XML. See
Artifact
for details. - Content-type: application/xml
- filename
- The file name of the uploaded artifact.
- Content-type: application/xml
- fileData
- The artifact data.
- Content-type: application/octet-stream
-
Constructor Summary
ConstructorDescriptionArtifactAndData
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, byte[] data) Deprecated.ArtifactAndData
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, File file) ArtifactAndData
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, InputStream data) ArtifactAndData
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, String filename, byte[] data) ArtifactAndData
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, String filename, InputStream data) -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.deployit.plugin.api.udm.artifact.Artifact
byte[]
getData()
Deprecated.Use com.xebialabs.deployit.engine.api.dto.ArtifactAndData#getDataInputStream()void
setArtifact
(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact) void
setData
(byte[] data) Deprecated.Use com.xebialabs.deployit.engine.api.dto.ArtifactAndData#setDataInputStream(java.io.InputStream)void
void
setFilename
(String filename) Methods inherited from class com.xebialabs.deployit.engine.api.dto.AbstractDto
toString
-
Constructor Details
-
ArtifactAndData
public ArtifactAndData() -
ArtifactAndData
- Parameters:
artifact
- The CI representing the artifact.file
- The artifact itself as an file.
-
ArtifactAndData
@Deprecated public ArtifactAndData(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, String filename, InputStream data) Deprecated.- Parameters:
artifact
- The CI representing the artifact.filename
- The file name of the uploaded artifact.data
- The artifact itself as an input stream.
-
ArtifactAndData
@Deprecated public ArtifactAndData(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, String filename, byte[] data) Deprecated.- Parameters:
artifact
- The CI representing the artifact.filename
- The file name of the uploaded artifact.data
- The artifact itself as an array of bytes.
-
ArtifactAndData
@Deprecated public ArtifactAndData(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, InputStream data) Deprecated.- Parameters:
artifact
- The CI representing the artifact.data
- The artifact itself as an input stream.
-
ArtifactAndData
@Deprecated public ArtifactAndData(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact, byte[] data) Deprecated.- Parameters:
artifact
- The CI representing the artifact.data
- The artifact itself as an array of bytes.
-
-
Method Details
-
getArtifact
public com.xebialabs.deployit.plugin.api.udm.artifact.Artifact getArtifact()- Returns:
- The CI representing the artifact.
-
setArtifact
public void setArtifact(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact artifact) - Parameters:
artifact
- The CI representing the artifact.
-
getDataInputStream
- Returns:
- The artifact data as an input stream.
-
setDataInputStream
- Parameters:
data
- The artifact data as an input stream.
-
getData
Deprecated.Use com.xebialabs.deployit.engine.api.dto.ArtifactAndData#getDataInputStream()- Returns:
- The artifact data as an array of bytes.
-
setData
Deprecated.Use com.xebialabs.deployit.engine.api.dto.ArtifactAndData#setDataInputStream(java.io.InputStream)- Parameters:
data
- The artifact data as an array of bytes.
-
getFilename
- Returns:
- The file name of the uploaded artifact.
-
setFilename
- Parameters:
filename
- The file name of the uploaded artifact.
-
ArtifactAndData(com.xebialabs.deployit.plugin.api.udm.artifact.Artifact, java.io.File)