public class AclXmlFactory
extends java.lang.Object
| Constructor and Description |
|---|
AclXmlFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected XmlWriter |
convertToXml(CanonicalGrantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified canonical grantee.
|
protected XmlWriter |
convertToXml(EmailAddressGrantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified email address grantee.
|
protected XmlWriter |
convertToXml(Grantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified Grantee.
|
protected XmlWriter |
convertToXml(GroupGrantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified group grantee.
|
byte[] |
convertToXmlByteArray(AccessControlList acl)
Converts the specified AccessControlList object to an XML fragment that
can be sent to Amazon S3.
|
public byte[] convertToXmlByteArray(AccessControlList acl) throws AmazonClientException
acl - The AccessControlList to convert to XML.AmazonClientExceptionprotected XmlWriter convertToXml(Grantee grantee, XmlWriter xml) throws AmazonClientException
grantee - The grantee to convert to an XML representation that can be
sent to Amazon S3 as part of a request.xml - The XmlWriter to which to concatenate this node to.AmazonClientException - If the specified grantee type isn't recognized.protected XmlWriter convertToXml(CanonicalGrantee grantee, XmlWriter xml)
grantee - The canonical grantee to convert to an XML representation that
can be sent to Amazon S3 as part of request.xml - The XmlWriter to which to concatenate this node to.protected XmlWriter convertToXml(EmailAddressGrantee grantee, XmlWriter xml)
grantee - The email address grantee to convert to an XML representation
that can be sent to Amazon S3 as part of request.xml - The XmlWriter to which to concatenate this node to.protected XmlWriter convertToXml(GroupGrantee grantee, XmlWriter xml)
grantee - The group grantee to convert to an XML representation that can
be sent to Amazon S3 as part of request.xml - The XmlWriter to which to concatenate this node to.