fun writeBlobPaths()

in google-storage-common/src/main/kotlin/jetbrains/buildServer/serverSide/artifacts/google/GoogleSignedUrlHelper.kt [82:92]


    fun writeBlobPaths(blobPaths: Map<String, String>): String {
        val rootElement = Element(BLOB_PATHS)
        for ((blobPath, contentType) in blobPaths) {
            if (StringUtil.isEmpty(blobPath)) continue
            val xmlElement = Element(BLOB_PATH)
            xmlElement.addContent(blobPath)
            xmlElement.setAttribute(BLOB_CONTENT_TYPE, contentType)
            rootElement.addContent(xmlElement)
        }
        return JDOMUtil.writeDocument(Document(rootElement), System.getProperty("line.separator"))
    }