org.jets3t.servlets.gatekeeper.impl
Class DefaultBucketLister
java.lang.Object
org.jets3t.servlets.gatekeeper.BucketLister
org.jets3t.servlets.gatekeeper.impl.DefaultBucketLister
public class DefaultBucketLister
- extends BucketLister
Default BucketLister implementation that lists all objects in the configured bucket.
- Author:
- James Murty
Constructor Summary |
DefaultBucketLister(javax.servlet.ServletConfig servletConfig)
Constructs the Bucket lister with the required parameters. |
Method Summary |
void |
listObjects(GatekeeperMessage gatekeeperMessage,
ClientInformation clientInformation)
Create in the GatekeeperMessage object a list of SignatureRequest objects capturing
details about the S3 objects contained in a bucket. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBucketLister
public DefaultBucketLister(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Constructs the Bucket lister with the required parameters.
The required parameters that must be available in the servlet configuration are:
- AwsAccessKey: The AWS Access Key for an S3 account
- AwsSecretKey: The AWS Secret Key for an S3 account
- S3BucketName: The bucket all objects are stored in (regardless of what bucket
name the client provided).
- Parameters:
servletConfig
-
- Throws:
javax.servlet.ServletException
listObjects
public void listObjects(GatekeeperMessage gatekeeperMessage,
ClientInformation clientInformation)
throws S3ServiceException
- Description copied from class:
BucketLister
- Create in the GatekeeperMessage object a list of SignatureRequest objects capturing
details about the S3 objects contained in a bucket. The client application will
interpret the SignatureRequest object details to reconstruct the objects.
- Specified by:
listObjects
in class BucketLister
- Parameters:
gatekeeperMessage
- the message object that was received, and in which the object listing to be returned
is stored.clientInformation
- information about the client end-point this request was received from.
- Throws:
S3ServiceException