Package org.jets3t.apps.uploader
Class XmlGenerator
- java.lang.Object
-
- org.jets3t.apps.uploader.XmlGenerator
-
public class XmlGenerator extends Object
Generates XML documents containing metadata about files uploaded to Amazon S3 by the Uploader. The XML document includes metadata for user inputs, inputs sourced from applet parameter tags, and additional information available from the uploader such as filenames and generated UUID.- Author:
- James Murty
-
-
Field Summary
Fields Modifier and Type Field Description static String
xmlVersionNumber
-
Constructor Summary
Constructors Constructor Description XmlGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addApplicationProperties(Map properties)
Add application-specific properties to the XML document.void
addMessageProperties(Map properties)
Add message-specific properties to the XML document.void
addSignatureRequest(String key, String bucketName, Map metadata, SignatureRequest signatureRequest)
Add a signature request item to the XML document to store the request, and details about the object the request was related to.String
generateXml()
Generates an XML document containing metadata information as Property elements.
-
-
-
Field Detail
-
xmlVersionNumber
public static final String xmlVersionNumber
- See Also:
- Constant Field Values
-
-
Method Detail
-
addSignatureRequest
public void addSignatureRequest(String key, String bucketName, Map metadata, SignatureRequest signatureRequest)
Add a signature request item to the XML document to store the request, and details about the object the request was related to.- Parameters:
key
- the key name of the object the signature request applies to.bucketName
- the bucket containing the object.metadata
- the object's metadatasignatureRequest
- the signature request for the object.
-
addApplicationProperties
public void addApplicationProperties(Map properties)
Add application-specific properties to the XML document.- Parameters:
properties
-
-
addMessageProperties
public void addMessageProperties(Map properties)
Add message-specific properties to the XML document.- Parameters:
properties
-
-
-