com.netease.cloud.services.nos.model
public class ResponseHeaderOverrides extends WebServiceRequest
GetObjectRequest
or
GeneratePresignedUrlRequest
response. Response headers can be set on
a GetObjectRequest
or a GeneratePresignedUrlRequest
in order
to control particular HTTP headers in the service response from those service
interfaces.
For example, a client could dynamically change the apparent Content-Disposition header of a single object, so that it appears to have a different file name for different callers. One client could be configured return the object with
Content-Disposition: attachment; filename=FileName1.exewhile another could return that same object with headers
Content-Disposition: attachment; filename=FileName2.pdf
logID, logSeq
Constructor and Description |
---|
ResponseHeaderOverrides() |
Modifier and Type | Method and Description |
---|---|
String |
getCacheControl()
Returns the cache control response header override if it has been
specified, or null otherwise.
|
String |
getContentDisposition()
Returns the content disposition response header override if it has been
specified, or null otherwise.
|
String |
getContentEncoding()
Returns the content encoding response header override if it has been
specified, or null otherwise.
|
String |
getContentLanguage()
Returns the content language response header override if it has been
specified, or null otherwise.
|
String |
getContentType()
Returns the content type response header override if it has been
specified, or null otherwise.
|
String |
getExpires()
Returns the expires response header override if it has been specified, or
null otherwise.
|
void |
setCacheControl(String cacheControl)
Sets the cache control response header.
|
void |
setContentDisposition(String contentDisposition)
Sets the content disposition response header override.
|
void |
setContentEncoding(String contentEncoding)
Sets the content encoding response header override.
|
void |
setContentLanguage(String contentLanguage)
Sets the content language response header override
|
void |
setContentType(String contentType)
Sets the content type response header override.
|
void |
setExpires(String expires)
Sets the expires response header override.
|
ResponseHeaderOverrides |
withCacheControl(String cacheControl)
Sets the cache control response header.
|
ResponseHeaderOverrides |
withContentDisposition(String contentDisposition)
Sets the content disposition response header override.
|
ResponseHeaderOverrides |
withContentEncoding(String contentEncoding)
Sets the content encoding response header override.
|
ResponseHeaderOverrides |
withContentLanguage(String contentLanguage)
Sets the content language response header override
|
ResponseHeaderOverrides |
withContentType(String contentType)
Sets the content type response header override.
|
ResponseHeaderOverrides |
withExpires(String expires)
Sets the expires response header override.
|
addSpecialHeader, copyPrivateRequestParameters, getAndIncrementLogSeq, getLogID, getLogSeq, getRequestClientOptions, getRequestCredentials, getToken, needSetLogInfo, setLogID, setLogSeq, setRequestCredentials, setToken
public String getContentType()
public void setContentType(String contentType)
public ResponseHeaderOverrides withContentType(String contentType)
ResponseHeaderOverrides
object for method chaining.public String getContentLanguage()
public void setContentLanguage(String contentLanguage)
public ResponseHeaderOverrides withContentLanguage(String contentLanguage)
ResponseHeaderOverrides
object for method chaining.public String getExpires()
public void setExpires(String expires)
public ResponseHeaderOverrides withExpires(String expires)
ResponseHeaderOverrides
object for method chaining.public String getCacheControl()
public void setCacheControl(String cacheControl)
public ResponseHeaderOverrides withCacheControl(String cacheControl)
ResponseHeaderOverrides
object for method chaining.public String getContentDisposition()
public void setContentDisposition(String contentDisposition)
public ResponseHeaderOverrides withContentDisposition(String contentDisposition)
public String getContentEncoding()
public void setContentEncoding(String contentEncoding)
public ResponseHeaderOverrides withContentEncoding(String contentEncoding)
ResponseHeaderOverrides
object for method chaining.Copyright © 2017. All Rights Reserved.