Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.s3;
Extension of com.amazonaws.ResponseMetadata 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.
public class S3ResponseMetadata extends ResponseMetadata {
    public static final String HOST_ID = "HOST_ID";

    
Creates a new S3ResponseMetadata object from a specified map of metadata information.

Parameters:
metadata The raw metadata for the new S3ResponseMetadata object.
    public S3ResponseMetadata(Map<StringStringmetadata) {
        super(metadata);
    }

    
Creates a new S3ResponseMetadata object from an existing ResponseMetadata object.

Parameters:
originalResponseMetadata The ResponseMetadata object from which to create the new object.
    public S3ResponseMetadata(ResponseMetadata originalResponseMetadata) {
        super(originalResponseMetadata);
    }

    
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.
    public String getHostId() {
        return .get();
    }
New to GrepCode? Check out our FAQ X