Class BlobTransferUtils


  • public class BlobTransferUtils
    extends java.lang.Object
    • Field Detail

      • BLOB_TRANSFER_STATUS

        public static final java.lang.String BLOB_TRANSFER_STATUS
        See Also:
        Constant Field Values
      • BLOB_TRANSFER_COMPLETED

        public static final java.lang.String BLOB_TRANSFER_COMPLETED
        See Also:
        Constant Field Values
      • BLOB_TRANSFER_TYPE

        public static final java.lang.String BLOB_TRANSFER_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • BlobTransferUtils

        public BlobTransferUtils()
    • Method Detail

      • isMetadataMessage

        public static boolean isMetadataMessage​(io.netty.handler.codec.http.HttpResponse msg)
        Check if the HttpResponse message is for metadata.
        Parameters:
        msg - the HttpResponse message
        Returns:
        true if the message is a metadata message, false otherwise
      • generateFileChecksum

        public static java.lang.String generateFileChecksum​(java.nio.file.Path filePath)
                                                     throws java.io.IOException
        Generate MD5 checksum for a file
        Parameters:
        filePath - the path to the file
        Returns:
        a hex string
        Throws:
        java.io.IOException - if an I/O error occurs