public final class UploadArtifact extends Object implements Serializable
OfficeBuildingManagerMBean
and made
available on the OfficeFloor
class path.Constructor and Description |
---|
UploadArtifact(File file)
Convenience constructor to upload a
File as the artifact. |
UploadArtifact(String name,
byte[] content)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Obtains the content of the artifact.
|
String |
getName()
Obtains the name of the artifact.
|
public UploadArtifact(String name, byte[] content)
name
- Name of the artifact.content
- Content of the artifact to upload.public UploadArtifact(File file) throws IOException
File
as the artifact.file
- File
to upload as the artifact.IOException
- If fails to obtain the File
for upload.public String getName()
public byte[] getContent()
Copyright © 2005–2016. All rights reserved.