Package com.ultikits.ultitools.utils
Class CatalogueHttp.Download
java.lang.Object
com.ultikits.ultitools.utils.CatalogueHttp.Download
- Enclosing class:
CatalogueHttp
A finished download. Carries no request header.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final Stringprivate final CatalogueHttp.Kindprivate final Stringprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDownload(CatalogueHttp.Kind kind, int status, long bytes, String sha256Hex, String headerSha256) -
Method Summary
-
Field Details
-
kind
-
status
private final int status -
bytes
private final long bytes -
sha256Hex
-
headerSha256
-
-
Constructor Details
-
Download
private Download(CatalogueHttp.Kind kind, int status, long bytes, String sha256Hex, String headerSha256)
-
-
Method Details
-
kind
CatalogueHttp.Kind kind()- Returns:
- what happened
-
status
int status()- Returns:
- the HTTP status, or
-1when 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-SHA256header, ornullwhen absent
-