/** * Returns an XML fragment representing the specified canonical grantee. * * @param grantee * The canonical grantee to convert to an XML representation that * can be sent to Amazon S3 as part of request. * @param xml * The XmlWriter to which to concatenate this node to. * * @return The given XmlWriter containing the specified canonical grantee. */ protected XmlWriter convertToXml(CanonicalGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] {"xmlns:xsi" , "xsi:type"}, new String[] {"http://www.w3.org/2001/XMLSchema-instance", "CanonicalUser"}); xml.start("ID").value(grantee.getIdentifier()).end(); xml.end(); return xml; }
/** * Returns an XML fragment representing the specified canonical grantee. * * @param grantee The canonical grantee to convert to an XML representation * that can be sent to Amazon S3 as part of request. * @param xml The XmlWriter to which to concatenate this node to. * @return The given XmlWriter containing the specified canonical grantee. */ protected XmlWriter convertToXml(CanonicalGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] { "xmlns:xsi", "xsi:type" }, new String[] { "http://www.w3.org/2001/XMLSchema-instance", "CanonicalUser" }); xml.start("ID").value(grantee.getIdentifier()).end(); xml.end(); return xml; }
/** * Returns an XML fragment representing the specified canonical grantee. * * @param grantee * The canonical grantee to convert to an XML representation that * can be sent to Amazon S3 as part of request. * @param xml * The XmlWriter to which to concatenate this node to. * * @return The given XmlWriter containing the specified canonical grantee. */ protected XmlWriter convertToXml(CanonicalGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] {"xmlns:xsi" , "xsi:type"}, new String[] {"http://www.w3.org/2001/XMLSchema-instance", "CanonicalUser"}); xml.start("ID").value(grantee.getIdentifier()).end(); xml.end(); return xml; }
/** * Returns an XML fragment representing the specified canonical grantee. * * @param grantee The canonical grantee to convert to an XML representation * that can be sent to Amazon S3 as part of request. * @param xml The XmlWriter to which to concatenate this node to. * @return The given XmlWriter containing the specified canonical grantee. */ protected XmlWriter convertToXml(CanonicalGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] { "xmlns:xsi", "xsi:type" }, new String[] { "http://www.w3.org/2001/XMLSchema-instance", "CanonicalUser" }); xml.start("ID").value(grantee.getIdentifier()).end(); xml.end(); return xml; }