Class B2HeadersImpl
- java.lang.Object
-
- com.backblaze.b2.client.contentSources.B2HeadersImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
B2HeadersImpl.Builder
-
Field Summary
-
Fields inherited from interface com.backblaze.b2.client.contentSources.B2Headers
AUTHORIZATION, CLIENT_UNAUTHORIZED_TO_READ, CONTENT_LENGTH, CONTENT_MD5, CONTENT_RANGE, CONTENT_SHA1, CONTENT_TYPE, CUSTOM_UPLOAD_TIMESTAMP, EXPECT, FILE_ID, FILE_INFO_PREFIX, FILE_LEGAL_HOLD, FILE_NAME, FILE_RETENTION_MODE, FILE_RETENTION_RETAIN_UNTIL_TIMESTAMP, HEX_DIGITS_AT_END, LARGE_FILE_SHA1, LARGE_FILE_SHA1_INFO_NAME, PART_NUMBER, RANGE, REPLICATION_STATUS, RETRY_AFTER, SERVER_SIDE_ENCRYPTION, SERVER_SIDE_ENCRYPTION_CUSTOMER_ALGORITHM, SERVER_SIDE_ENCRYPTION_CUSTOMER_KEY, SERVER_SIDE_ENCRYPTION_CUSTOMER_KEY_MD5, SRC_LAST_MODIFIED_MILLIS, SRC_LAST_MODIFIED_MILLIS_INFO_NAME, TEST_MODE, UPLOAD_TIMESTAMP, USER_AGENT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static B2HeadersImpl.Builder
builder()
static B2HeadersImpl.Builder
builder(B2Headers headersOrNull)
java.util.Collection<java.lang.String>
getNames()
java.lang.String
getValueOrNull(java.lang.String name)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.backblaze.b2.client.contentSources.B2Headers
getB2FileInfo, getClientUnauthorizedToReadHeaderList, getContentLength, getContentMd5OrNull, getContentSha1EvenIfUnverifiedOrNull, getContentSha1OrNull, getContentType, getFileLegalHoldOrNull, getFileNameOrNull, getFileRetentionModeOrNull, getFileRetentionRetainUntilTimestampOrNull, getLargeFileSha1OrNull, getReplicationStatusOrNull, getServerSideEncryptionOrNull, getSrcLastModifiedMillis, getSseCustomerAlgorithmOrNull, getSseCustomerKeyMd5OrNull, getUploadTimestampOrNull, hasContentRange, isClientUnauthorizedToReadFileRetention, isClientUnauthorizedToReadLegalHold
-
-
-
-
Method Detail
-
getNames
public java.util.Collection<java.lang.String> getNames()
-
getValueOrNull
public java.lang.String getValueOrNull(java.lang.String name)
- Specified by:
getValueOrNull
in interfaceB2Headers
- Returns:
- the value for the given header name, or null if none.
-
builder
public static B2HeadersImpl.Builder builder()
- Returns:
- a new builder with no headers set yet.
-
builder
public static B2HeadersImpl.Builder builder(B2Headers headersOrNull)
- Parameters:
headersOrNull
- if non-null, the headers to prepopulate in the builder.- Returns:
- a new builder. if headersOrNull != null, the values from those headers will have already been set on the returned builder.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-