public class GatekeeperClientUtils
extends java.lang.Object
Constructor and Description |
---|
GatekeeperClientUtils(java.lang.String gatekeeperUrl,
java.lang.String userAgentDescription,
int maxRetryCount,
int connectionTimeoutMS,
org.apache.http.client.CredentialsProvider credentialsProvider) |
Modifier and Type | Method and Description |
---|---|
S3Object[] |
buildS3ObjectsFromSignatureRequests(SignatureRequest[] srs)
Parse the data in a set of SignatureRequest objects and build the corresponding
S3Objects represented by that data.
|
java.lang.String |
getGatekeeperUrl() |
GatekeeperMessage |
requestActionThroughGatekeeper(java.lang.String operationType,
java.lang.String bucketName,
S3Object[] objects,
java.util.Map applicationPropertiesMap)
Request permission from the Gatekeeper for a particular operation.
|
public GatekeeperClientUtils(java.lang.String gatekeeperUrl, java.lang.String userAgentDescription, int maxRetryCount, int connectionTimeoutMS, org.apache.http.client.CredentialsProvider credentialsProvider)
gatekeeperUrl
- userAgentDescription
- maxRetryCount
- connectionTimeoutMS
- credentialsProvider
- public GatekeeperMessage requestActionThroughGatekeeper(java.lang.String operationType, java.lang.String bucketName, S3Object[] objects, java.util.Map applicationPropertiesMap) throws org.apache.http.HttpException, java.lang.Exception
operationType
- bucketName
- objects
- applicationPropertiesMap
- org.apache.http.HttpException
java.lang.Exception
public S3Object[] buildS3ObjectsFromSignatureRequests(SignatureRequest[] srs)
srs
- signature requests that represent S3 objects.public java.lang.String getGatekeeperUrl()