public class AclXmlFactory extends Object
构造器和说明 |
---|
AclXmlFactory() |
限定符和类型 | 方法和说明 |
---|---|
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.CosClientException
protected 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 © 2022. All rights reserved.