org.jets3t.service.utils.signedurl
Class GatekeeperClientUtils
java.lang.Object
org.jets3t.service.utils.signedurl.GatekeeperClientUtils
public class GatekeeperClientUtils
- extends java.lang.Object
Utility class to handle common operations performed by Gatekeeper client applications.
Constructor Summary |
GatekeeperClientUtils(java.lang.String gatekeeperUrl,
java.lang.String userAgentDescription,
int maxRetryCount,
int connectionTimeoutMS,
org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GatekeeperClientUtils
public GatekeeperClientUtils(java.lang.String gatekeeperUrl,
java.lang.String userAgentDescription,
int maxRetryCount,
int connectionTimeoutMS,
org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider)
- Parameters:
gatekeeperUrl
- userAgentDescription
- maxRetryCount
- connectionTimeoutMS
- credentialsProvider
-
requestActionThroughGatekeeper
public GatekeeperMessage requestActionThroughGatekeeper(java.lang.String operationType,
java.lang.String bucketName,
S3Object[] objects,
java.util.Map applicationPropertiesMap)
throws org.apache.commons.httpclient.HttpException,
java.lang.Exception
- Request permission from the Gatekeeper for a particular operation.
- Parameters:
operationType
- bucketName
- objects
- applicationPropertiesMap
-
- Throws:
org.apache.commons.httpclient.HttpException
java.lang.Exception
buildS3ObjectsFromSignatureRequests
public S3Object[] buildS3ObjectsFromSignatureRequests(SignatureRequest[] srs)
- Parse the data in a set of SignatureRequest objects and build the corresponding
S3Objects represented by that data.
- Parameters:
srs
- signature requests that represent S3 objects.
- Returns:
- objects reconstructed from the provided signature requests.
getGatekeeperUrl
public java.lang.String getGatekeeperUrl()