public abstract class SharedAccessHeaders extends Object
| Constructor and Description |
|---|
SharedAccessHeaders()
Initializes a new instance of the
SharedAccessHeaders class. |
SharedAccessHeaders(boolean preserveRawValue)
Initializes a new instance of the
SharedAccessHeaders class. |
SharedAccessHeaders(SharedAccessHeaders other)
Initializes a new instance of the
SharedAccessHeaders class based on an existing instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheControl()
Gets the cache control header.
|
String |
getContentDisposition()
Gets the content disposition header.
|
String |
getContentEncoding()
Gets the content encoding header.
|
String |
getContentLanguage()
Gets the content language header.
|
String |
getContentType()
Gets the content type header.
|
void |
setCacheControl(String cacheControl)
Sets the cache control header.
|
void |
setContentDisposition(String contentDisposition)
Sets the content disposition header.
|
void |
setContentEncoding(String contentEncoding)
Sets the content encoding header.
|
void |
setContentLanguage(String contentLanguage)
Sets the content language header.
|
void |
setContentType(String contentType)
Sets the content type header.
|
public SharedAccessHeaders()
SharedAccessHeaders class.public SharedAccessHeaders(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 SharedAccessHeaders(SharedAccessHeaders other)
SharedAccessHeaders class based on an existing instance.other - A SharedAccessHeaders object which specifies the set of properties to clone.public String getCacheControl()
String which represents the cache control header.public void setCacheControl(String cacheControl)
cacheControl - A String which specifies the cache control header.public String getContentDisposition()
String which represents the content disposition header.public void setContentDisposition(String contentDisposition)
contentDisposition - A String which specifies the content disposition header.public String getContentEncoding()
String which represents the content encoding header.public void setContentEncoding(String contentEncoding)
contentEncoding - A String which specifies the content encoding header.public String getContentLanguage()
String which represents the content language header.public void setContentLanguage(String contentLanguage)
contentLanguage - A String which specifies the content language header.public String getContentType()
String which represents the content type header.public void setContentType(String contentType)
contentType - A String which specifies the content type header.Copyright © 2021. All Rights Reserved.