public class S3 extends Object
downloadFileS3(s3EndpointUrl, accessKey, secretKey, bucket, s3Key, targetPath);
uploadFileS3(s3EndpointUrl, accessKey, secretKey, bucket, s3Key, sourcePath, strategy);
createFolderS3(s3EndpointUrl, accessKey, secretKey, bucket, s3Key);
deleteFolderFileS3(s3EndpointUrl, accessKey, secretKey, bucket, s3Key);
directoryListS3(s3EndpointUrl, accessKey, secretKey, bucket, s3Key);
Driver Type: Desktop
Modifier and Type | Field and Description |
---|---|
static long |
S3_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
static String |
createFolderS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key)
Create folder on S3 bucket
|
static void |
deleteFolderFileS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key)
Delete folder or file on S3 bucket
|
static List<Object> |
directoryListS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key)
Get list of folders and files from S# bucket
|
static String |
downloadFileS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key,
String targetPath)
Download file from S3 bucket to local file
|
static String |
downloadFileS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key,
String targetPath,
long timeout)
Download file from S3 bucket to local file
|
static String |
uploadFileS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key,
String sourcePath,
S3OverwriteStrategy strategy)
Upload file to S3 bucket from local file
|
static String |
uploadFileS3(String s3EndpointUrl,
String signerType,
String accessKey,
String secretKey,
String bucket,
String s3Key,
String sourcePath,
S3OverwriteStrategy strategy,
long timeout)
Upload file to S3 bucket from local file
|
public static String downloadFileS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key, String targetPath)
Download file from S3 bucket to local file
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of file on buckettargetPath
- string representation path for destination filepublic static String downloadFileS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key, String targetPath, long timeout)
Download file from S3 bucket to local file
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of file on buckettargetPath
- string representation path for destination filetimeout
- in milliseconds how long wait to responsepublic static String uploadFileS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key, String sourcePath, S3OverwriteStrategy strategy)
Upload file to S3 bucket from local file
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of file on bucketsourcePath
- string representation path for source filestrategy
- enum for values OVERWRITE, SKIP and FAILpublic static String uploadFileS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key, String sourcePath, S3OverwriteStrategy strategy, long timeout)
Upload file to S3 bucket from local file
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of file on bucketsourcePath
- string representation path for source filestrategy
- enum for values OVERWRITE, SKIP and FAILtimeout
- in milliseconds how long wait to responsepublic static String createFolderS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key)
Create folder on S3 bucket
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of folder on bucketpublic static void deleteFolderFileS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key)
Delete folder or file on S3 bucket
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of folder or file on bucketpublic static List<Object> directoryListS3(String s3EndpointUrl, String signerType, String accessKey, String secretKey, String bucket, String s3Key)
Get list of folders and files from S# bucket
Driver Type: Desktop
s3EndpointUrl
- string representation of url to S3accessKey
- string representation of access key to S3 bucketsecretKey
- string representation of secret key to S3 bucketbucket
- string representation name of buckets3Key
- string representation path of root folder or file on bucketCopyright 2016, WorkFusion, Inc.