Package com.amazonaws.services.s3
Class S3ResponseMetadata
- java.lang.Object
-
- com.amazonaws.ResponseMetadata
-
- com.amazonaws.services.s3.S3ResponseMetadata
-
public class S3ResponseMetadata extends ResponseMetadata
Extension ofResponseMetadata
with Amazon S3 specific data. In addition to the standard AWS request ID contained in all services' response metadata, Amazon S3 also includes a host ID that can be provided to AWS support when debugging an issue with Amazon S3.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLOUD_FRONT_ID
static String
HOST_ID
-
Fields inherited from class com.amazonaws.ResponseMetadata
AWS_REQUEST_ID, metadata
-
-
Constructor Summary
Constructors Constructor Description S3ResponseMetadata(ResponseMetadata originalResponseMetadata)
Creates a new S3ResponseMetadata object from an existing ResponseMetadata object.S3ResponseMetadata(Map<String,String> metadata)
Creates a new S3ResponseMetadata object from a specified map of metadata information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCloudFrontId()
String
getHostId()
Returns the Amazon S3 host ID, providing additional debugging information about how a request was handled.-
Methods inherited from class com.amazonaws.ResponseMetadata
getRequestId, toString
-
-
-
-
Field Detail
-
HOST_ID
public static final String HOST_ID
- See Also:
- Constant Field Values
-
CLOUD_FRONT_ID
public static final String CLOUD_FRONT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
S3ResponseMetadata
public S3ResponseMetadata(Map<String,String> metadata)
Creates a new S3ResponseMetadata object from a specified map of metadata information.- Parameters:
metadata
- The raw metadata for the new S3ResponseMetadata object.
-
S3ResponseMetadata
public S3ResponseMetadata(ResponseMetadata originalResponseMetadata)
Creates a new S3ResponseMetadata object from an existing ResponseMetadata object.- Parameters:
originalResponseMetadata
- The ResponseMetadata object from which to create the new object.
-
-
Method Detail
-
getHostId
public String getHostId()
Returns the Amazon S3 host ID, providing additional debugging information about how a request was handled. You can provide AWS support with this ID to help troubleshoot issues where Amazon S3 isn't handling your request as expected.- Returns:
- The Amazon S3 host ID, providing additional debugging information about how a request was handled.
-
getCloudFrontId
public String getCloudFrontId()
-
-