public interface SignedUrlHandler
Implementation classes need no knowledge of S3 as such, but merely have to be able to perform standard HTTP requests for PUT, GET, HEAD and DELETE operation using signed URLs.
The RestS3Service
implements this interface
using the HttpClient library.
Modifier and Type | Method and Description |
---|---|
void |
deleteObjectWithSignedUrl(java.lang.String signedDeleteUrl)
Deletes an object using a pre-signed DELETE URL generated for that object.
|
AccessControlList |
getObjectAclWithSignedUrl(java.lang.String signedAclUrl)
Gets an object's ACL details using a pre-signed GET URL generated for that object.
|
S3Object |
getObjectDetailsWithSignedUrl(java.lang.String signedHeadUrl)
Gets an object's details using a pre-signed HEAD URL generated for that object.
|
S3Object |
getObjectWithSignedUrl(java.lang.String signedGetUrl)
Gets an object using a pre-signed GET URL generated for that object.
|
void |
putObjectAclWithSignedUrl(java.lang.String signedAclUrl,
AccessControlList acl)
Sets an object's ACL details using a pre-signed PUT URL generated for that object.
|
S3Object |
putObjectWithSignedUrl(java.lang.String signedPutUrl,
S3Object object)
Puts an object using a pre-signed PUT URL generated for that object.
|
S3Object putObjectWithSignedUrl(java.lang.String signedPutUrl, S3Object object) throws ServiceException
SignedUrlHandler
.
This operation does not required any S3 functionality as it merely uploads the object by performing a standard HTTP PUT using the signed URL.
signedPutUrl
- a signed PUT URL generated.object
- the object to upload, which must correspond to the object for which the URL was signed.
The object must have the correct content length set, and to apply a non-standard
ACL policy only the REST canned ACLs can be used
(eg AccessControlList.REST_CANNED_PUBLIC_READ_WRITE
).ServiceException
void deleteObjectWithSignedUrl(java.lang.String signedDeleteUrl) throws ServiceException
SignedUrlHandler
.
This operation does not required any S3 functionality as it merely deletes the object by performing a standard HTTP DELETE using the signed URL.
signedDeleteUrl
- a signed DELETE URL.ServiceException
S3Object getObjectWithSignedUrl(java.lang.String signedGetUrl) throws ServiceException
SignedUrlHandler
.
This operation does not required any S3 functionality as it merely uploads the object by performing a standard HTTP GET using the signed URL.
signedGetUrl
- a signed GET URL.ServiceException
S3Object getObjectDetailsWithSignedUrl(java.lang.String signedHeadUrl) throws ServiceException
SignedUrlHandler
.
This operation does not required any S3 functionality as it merely uploads the object by performing a standard HTTP HEAD using the signed URL.
signedHeadUrl
- a signed HEAD URL.ServiceException
AccessControlList getObjectAclWithSignedUrl(java.lang.String signedAclUrl) throws ServiceException
SignedUrlHandler
.signedAclUrl
- a signed URL.ServiceException
void putObjectAclWithSignedUrl(java.lang.String signedAclUrl, AccessControlList acl) throws ServiceException
SignedUrlHandler
.signedAclUrl
- a signed URL.acl
- the ACL settings to apply to the object represented by the signed URL.ServiceException