public interface IBlobStoreClientService
Modifier and Type | Method and Description |
---|---|
String |
doDeleteFile(String strBaseUrl,
String strBlobStore,
String strBlobKey)
Do delete a file in the blobstore webapp
|
org.apache.commons.fileupload.FileItem |
doDownloadFile(String strUrl)
Download the file
|
void |
doDownloadFile(String strUrl,
String strFilePath)
Download the file to the file path
|
String |
doUploadFile(String strBaseUrl,
org.apache.commons.fileupload.FileItem fileItem,
String strBlobStore)
Do upload a file in the blobstore webapp
|
String |
getFileName(String strUrl)
Get the file name given an url
|
String |
getFileUrl(String strBaseUrl,
String strBlobStore,
String strBlobKey)
Get the file url
|
String getFileName(String strUrl) throws BlobStoreClientException
strUrl
- the urlBlobStoreClientException
- exception if there is an issueString doDeleteFile(String strBaseUrl, String strBlobStore, String strBlobKey) throws BlobStoreClientException
strBaseUrl
- the base urlstrBlobStore
- the blobstore service namestrBlobKey
- the blob keyBlobStoreClientException
- exception if there is an issueString doUploadFile(String strBaseUrl, org.apache.commons.fileupload.FileItem fileItem, String strBlobStore) throws BlobStoreClientException
strBaseUrl
- the base urlfileItem
- the file to uploadstrBlobStore
- the blobstore service nameBlobStoreClientException
- exception if there is an issueString getFileUrl(String strBaseUrl, String strBlobStore, String strBlobKey) throws BlobStoreClientException
strBaseUrl
- the base urlstrBlobStore
- the blobstore service namestrBlobKey
- the blob keyBlobStoreClientException
- exception if there is an issuevoid doDownloadFile(String strUrl, String strFilePath) throws BlobStoreClientException
strUrl
- the url of the filestrFilePath
- the file pathBlobStoreClientException
- exception if there is an errororg.apache.commons.fileupload.FileItem doDownloadFile(String strUrl) throws BlobStoreClientException
strUrl
- the url of the fileFileItem
BlobStoreClientException
- exception if there is an errorCopyright © 2016 Mairie de Paris. All Rights Reserved.