public interface ArchiveUploadMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchiveFilePath(Object id)
Returns the absolute path to the location of the uploaded archive.
|
String |
getArchiveURL(Object id)
Returns the location of the uploaded archive.
|
Object |
initiateUpload(String archiveName)
Initiates an upload session.
|
boolean |
removeArchive(Object id)
Delete the uploaded archive.
|
void |
terminateUpload(Object id,
Long timestamp)
Used to indicate that the upload session with the specified id is
complete.
|
void |
uploadBytes(Object id,
byte[] bytes)
Uploads a chunk of bytes to an existing temporary archive file.
|
static final String ARCHIVE_NAME
Object initiateUpload(String archiveName) throws IOException
uploadBytes() method.IOExceptionvoid uploadBytes(Object id, byte[] bytes) throws IOException
id - the upload identifierbytes - the content to uploadIOExceptionvoid terminateUpload(Object id, Long timestamp) throws IOException
IOExceptionString getArchiveURL(Object id)
id - the upload identifierString getArchiveFilePath(Object id)
id - the upload identifierboolean removeArchive(Object id)
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.