public class GatekeeperClientUtils extends Object
Constructor and Description |
---|
GatekeeperClientUtils(String gatekeeperUrl,
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.
|
String |
getGatekeeperUrl() |
GatekeeperMessage |
requestActionThroughGatekeeper(String operationType,
String bucketName,
S3Object[] objects,
Map applicationPropertiesMap)
Request permission from the Gatekeeper for a particular operation.
|
public GatekeeperClientUtils(String gatekeeperUrl, String userAgentDescription, int maxRetryCount, int connectionTimeoutMS, org.apache.http.client.CredentialsProvider credentialsProvider)
gatekeeperUrl
- userAgentDescription
- maxRetryCount
- connectionTimeoutMS
- credentialsProvider
- public GatekeeperMessage requestActionThroughGatekeeper(String operationType, String bucketName, S3Object[] objects, Map applicationPropertiesMap) throws org.apache.http.HttpException, Exception
operationType
- bucketName
- objects
- applicationPropertiesMap
- org.apache.http.HttpException
Exception
public S3Object[] buildS3ObjectsFromSignatureRequests(SignatureRequest[] srs)
srs
- signature requests that represent S3 objects.public String getGatekeeperUrl()
Copyright © 2006–2018. All rights reserved.