public class ServiceArtifact
extends java.lang.Object
Constructor and Description |
---|
ServiceArtifact(java.lang.String name,
java.lang.String path,
byte[] content)
Create the ServiceArtifact to be stored in the service archive which represents a file.
|
ServiceArtifact(java.lang.String name,
java.lang.String path,
byte[] content,
java.lang.String version)
Create the ServiceArtifact with a specified version to be stored in the service archive which represents a file
|
ServiceArtifact(java.lang.String name,
java.lang.String path,
byte[] content,
java.lang.String version,
java.lang.String type)
Create the ServiceArtifact with a specified version to be stored in the service archive which represents the
specified type
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getType() |
java.lang.String |
getVersion() |
public ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content)
name
- The name of the property associated with this filepath
- The path the file should be stored at in the service archivecontent
- The contents of the file as a byte arraypublic ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content, java.lang.String version)
name
- The name of the property associated with this filepath
- The path the file should be stored at in the service archivecontent
- The contents of the file as a byte arrayversion
- The version of the filepublic ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content, java.lang.String version, java.lang.String type)
name
- The name of the property associated with this artifactpath
- The path the artifact should be stored at in the service archivecontent
- The contents of the artifact as a byte arrayversion
- The version of the artifacttype
- The type of the artifactpublic java.lang.String getPath()
public byte[] getContent()
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getType()