Class CatalogueHttp.Download

java.lang.Object
com.ultikits.ultitools.utils.CatalogueHttp.Download
Enclosing class:
CatalogueHttp

static final class CatalogueHttp.Download extends Object
A finished download. Carries no request header.
  • Field Details

    • kind

      private final CatalogueHttp.Kind kind
    • status

      private final int status
    • bytes

      private final long bytes
    • sha256Hex

      private final String sha256Hex
    • headerSha256

      private final String headerSha256
  • Constructor Details

  • Method Details

    • kind

      Returns:
      what happened
    • status

      int status()
      Returns:
      the HTTP status, or -1 when no exchange completed
    • bytes

      long bytes()
      Returns:
      the number of body bytes written
    • sha256Hex

      String sha256Hex()
      Returns:
      the lower-case hex SHA-256 of the bytes written
    • headerSha256

      String headerSha256()
      Returns:
      the X-Content-SHA256 header, or null when absent