public class XmlGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
xmlVersionNumber |
| Constructor and Description |
|---|
XmlGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final java.lang.String xmlVersionNumber
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