org.jets3t.servlets.gatekeeper.impl
Class DefaultBucketLister

java.lang.Object
  extended by org.jets3t.servlets.gatekeeper.BucketLister
      extended by 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

Field Summary
protected  AWSCredentials awsCredentials
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

awsCredentials

protected AWSCredentials awsCredentials
Constructor Detail

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:

Parameters:
servletConfig -
Throws:
javax.servlet.ServletException
Method Detail

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