Class OssMediaUpload

java.lang.Object
com.alibaba.dashscope.resources.oss.OssMediaUpload

public final class OssMediaUpload extends Object
Recursive media upload walk (Python v2 upload_media_value parity): strings, lists and maps are walked; every string that is a file:// URI or an existing local path is uploaded via OssUploader and replaced by its oss:// URL; existing oss:// strings pass through and also flag the resolve header. Any upload or oss presence sets isOssResolve(), and the caller then sends X-DashScope-OssResourceResolve: enable. The policy certificate is fetched lazily once per walk and reused.
  • Field Details

  • Constructor Details

  • Method Details

    • process

      public Object process(Object value)
      Walk one value; returns the transformed value (identity when nothing needed uploading).
    • isOssResolve

      public boolean isOssResolve()
      true when any string was an oss:// reference or was uploaded.