public class AclXmlFactory extends Object
| Constructor and Description |
|---|
AclXmlFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected XmlWriter |
convertToXml(Grantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified Grantee.
|
protected XmlWriter |
convertToXml(GroupGrantee grantee,
XmlWriter xml) |
protected XmlWriter |
convertToXml(UinGrantee grantee,
XmlWriter xml)
Returns an XML fragment representing the specified canonical grantee.
|
byte[] |
convertToXmlByteArray(AccessControlList acl)
Converts the specified AccessControlList object to an XML fragment that can be sent to COS.
|
public byte[] convertToXmlByteArray(AccessControlList acl) throws CosClientException
acl - The AccessControlList to convert to XML.CosClientExceptionprotected XmlWriter convertToXml(Grantee grantee, XmlWriter xml) throws CosClientException
grantee - The grantee to convert to an XML representation that can be sent to COS as
part of a request.xml - The XmlWriter to which to concatenate this node to.CosClientException - If the specified grantee type isn't recognized.protected XmlWriter convertToXml(UinGrantee grantee, XmlWriter xml)
grantee - The canonical grantee to convert to an XML representation that can be sent to
COS as part of request.xml - The XmlWriter to which to concatenate this node to.protected XmlWriter convertToXml(GroupGrantee grantee, XmlWriter xml)
Copyright © 2023. All rights reserved.