public final class SharedAccessBlobHeaders extends SharedAccessHeaders
| Constructor and Description |
|---|
SharedAccessBlobHeaders()
Initializes a new instance of the
SharedAccessBlobHeaders class. |
SharedAccessBlobHeaders(boolean preserveRawValue)
Initializes a new instance of the
SharedAccessHeaders class. |
SharedAccessBlobHeaders(SharedAccessHeaders other)
Initializes a new instance of the
SharedAccessBlobHeaders class based on an existing instance. |
getCacheControl, getContentDisposition, getContentEncoding, getContentLanguage, getContentType, setCacheControl, setContentDisposition, setContentEncoding, setContentLanguage, setContentTypepublic SharedAccessBlobHeaders()
SharedAccessBlobHeaders class.public SharedAccessBlobHeaders(boolean preserveRawValue)
SharedAccessHeaders class. The empty constructor should be preferred
and this option should only be used by customers who are sure they do not want the safety usually afforded by
this SDK when constructing a sas.
The header values are typically decoded before building the sas token. This can cause problems if the desired value for one of the headers contains something that looks like encoding. Setting this flag to true will ensure that the value of these headers are preserved as set on this object when constructing the sas.
Note that these values are preserved by encoding them here so that the decoding which happens at sas construction time returns them to the original values. So if get is called on this object when preserveRawValues was set to true, the value returned will be percent encoded.
preserveRawValue - Whether the sdk should preserve the raw value of these headers.public SharedAccessBlobHeaders(SharedAccessHeaders other)
SharedAccessBlobHeaders class based on an existing instance.other - A SharedAccessHeaders object which specifies the set of properties to clone.Copyright © 2021. All Rights Reserved.