public class AmazonWSClient extends Object implements IAmazonWSClient
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_SUB_DIRECTORY_SEPARATOR |
| Constructor and Description |
|---|
AmazonWSClient(AmazonWsConfig wsConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(String srcKey,
String destKey)
Copy a file/object within S3.
|
void |
delete(String srcKey)
Delete a file/object from S3.
|
String |
deploy(String contentType,
InputStream contentStream,
String destKey)
Push a file/object onto S3.
|
String |
move(String srcKey,
String destKey)
Move a file/object within S3.
|
InputStream |
read(String srcKey)
Return an input stream connected to a file/object on S3.
|
public static final String URL_SUB_DIRECTORY_SEPARATOR
public AmazonWSClient(AmazonWsConfig wsConfig)
wsConfig - the amazon configurationpublic String deploy(String contentType, InputStream contentStream, String destKey) throws AmazonWSException
IAmazonWSClientdeploy in interface IAmazonWSClientcontentType - - The content typecontentStream - - The contentdestKey - - the destination keyAmazonWSException - if deploying on amazon is problematicpublic void copy(String srcKey, String destKey) throws AmazonWSException
IAmazonWSClientcopy in interface IAmazonWSClientsrcKey - - the source keydestKey - - the destination keyAmazonWSException - if deploying on amazon is problematicpublic String move(String srcKey, String destKey) throws AmazonWSException
IAmazonWSClientmove in interface IAmazonWSClientsrcKey - - the source keydestKey - - the destination keyAmazonWSException - if deploying on amazon is problematicpublic void delete(String srcKey) throws AmazonWSException
IAmazonWSClientdelete in interface IAmazonWSClientsrcKey - - The key to deleteAmazonWSException - if the content does not existpublic InputStream read(String srcKey) throws AmazonWSException
IAmazonWSClientread in interface IAmazonWSClientsrcKey - - the source key content to readAmazonWSException - if the content does not existCopyright © 2016. All rights reserved.