|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jets3t.apps.uploader.XmlGenerator
public class XmlGenerator
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.
Field Summary | |
---|---|
static java.lang.String |
xmlVersionNumber
|
Constructor Summary | |
---|---|
XmlGenerator()
|
Method Summary | |
---|---|
void |
addApplicationProperties(java.util.Map properties)
Add application-specific properties to the XML document. |
void |
addMessageProperties(java.util.Map properties)
Add message-specific properties to the XML document. |
void |
addSignatureRequest(java.lang.String key,
java.lang.String bucketName,
java.util.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. |
java.lang.String |
generateXml()
Generates an XML document containing metadata information as Property elements. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String xmlVersionNumber
Constructor Detail |
---|
public XmlGenerator()
Method Detail |
---|
public void addSignatureRequest(java.lang.String key, java.lang.String bucketName, java.util.Map metadata, SignatureRequest signatureRequest)
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.public void addApplicationProperties(java.util.Map properties)
properties
- public void addMessageProperties(java.util.Map properties)
properties
- public java.lang.String generateXml() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |