Class ResponseHeaderOverrides

java.lang.Object
com.amazonaws.services.s3.model.ResponseHeaderOverrides
All Implemented Interfaces:
Serializable

public class ResponseHeaderOverrides extends Object implements Serializable
Container object for overriding headers on a 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.exe
while another could return that same object with headers
Content-Disposition: attachment; filename=FileName2.pdf

See Also: