public class JetS3RESTServiceImpl extends Object implements JetS3RESTService
| Constructor and Description |
|---|
JetS3RESTServiceImpl(String accessKey,
String secretKey,
String bucketName)
Instantiates a new rEST service.
This Service can be used when you want to communicate with Amazon S3 bucket independenly. UseCase: Assuming you are working on a developer machine and want to upload contents on S3 bucket. |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteObject(File fileName)
Delete object.
|
void |
deleteObject(String fileName)
Delete object.
|
boolean |
putObject(File fileName)
Put object.
|
boolean |
putObject(String fileName)
Put object.
|
public JetS3RESTServiceImpl(String accessKey, String secretKey, String bucketName)
public boolean putObject(String fileName) throws org.jets3t.service.S3ServiceException, NoSuchAlgorithmException, IOException
putObject in interface JetS3RESTServicefileName - the file nameorg.jets3t.service.S3ServiceException - the s3 service exceptionNoSuchAlgorithmException - the no such algorithm exceptionIOException - Signals that an I/O exception has occurred.public boolean putObject(File fileName) throws org.jets3t.service.S3ServiceException, NoSuchAlgorithmException, IOException
putObject in interface JetS3RESTServicefileName - the file nameorg.jets3t.service.S3ServiceException - the s3 service exceptionNoSuchAlgorithmException - the no such algorithm exceptionIOException - Signals that an I/O exception has occurred.public void deleteObject(String fileName) throws NoSuchAlgorithmException, IOException, org.jets3t.service.ServiceException
deleteObject in interface JetS3RESTServicefileName - the file nameNoSuchAlgorithmException - the no such algorithm exceptionIOException - Signals that an I/O exception has occurred.org.jets3t.service.ServiceException - the service exceptionpublic void deleteObject(File fileName) throws NoSuchAlgorithmException, IOException, org.jets3t.service.ServiceException
deleteObject in interface JetS3RESTServicefileName - the file nameNoSuchAlgorithmException - the no such algorithm exceptionIOException - Signals that an I/O exception has occurred.org.jets3t.service.ServiceException - the service exceptionCopyright © 2015. Abhinav Kumar Mishra. All rights reserved.