Class GatekeeperClientUtils
- java.lang.Object
-
- org.jets3t.service.utils.signedurl.GatekeeperClientUtils
-
public class GatekeeperClientUtils extends Object
Utility class to handle common operations performed by Gatekeeper client applications.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description GatekeeperClientUtils(String gatekeeperUrl, String userAgentDescription, int maxRetryCount, int connectionTimeoutMS, org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3Object[]
buildS3ObjectsFromSignatureRequests(SignatureRequest[] srs)
Parse the data in a set of SignatureRequest objects and build the corresponding S3Objects represented by that data.String
getGatekeeperUrl()
GatekeeperMessage
requestActionThroughGatekeeper(String operationType, String bucketName, S3Object[] objects, Map applicationPropertiesMap)
Request permission from the Gatekeeper for a particular operation.
-
-
-
Constructor Detail
-
GatekeeperClientUtils
public GatekeeperClientUtils(String gatekeeperUrl, String userAgentDescription, int maxRetryCount, int connectionTimeoutMS, org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider)
- Parameters:
gatekeeperUrl
-userAgentDescription
-maxRetryCount
-connectionTimeoutMS
-credentialsProvider
-
-
-
Method Detail
-
requestActionThroughGatekeeper
public GatekeeperMessage requestActionThroughGatekeeper(String operationType, String bucketName, S3Object[] objects, Map applicationPropertiesMap) throws org.apache.commons.httpclient.HttpException, Exception
Request permission from the Gatekeeper for a particular operation.- Parameters:
operationType
-bucketName
-objects
-applicationPropertiesMap
-- Throws:
org.apache.commons.httpclient.HttpException
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 String getGatekeeperUrl()
-
-