Subversion Repositories SmartDukaan

Rev

Rev 12573 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12573 Rev 12576
Line 1... Line -...
1
Unexpected error.  File contents could not be restored from local history during undo/redo.
-
 
2
1
/******************************************************************************* 
-
 
2
 *  Copyright 2008-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
 
3
 *  Licensed under the Apache License, Version 2.0 (the "License"); 
-
 
4
 *  
-
 
5
 *  You may not use this file except in compliance with the License. 
-
 
6
 *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
-
 
7
 *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
-
 
8
 *  CONDITIONS OF ANY KIND, either express or implied. See the License for the 
-
 
9
 *  specific language governing permissions and limitations under the License.
-
 
10
 * ***************************************************************************** 
-
 
11
 * 
-
 
12
 *  Marketplace Web Service Orders Java Library
-
 
13
 *  API Version: 2011-01-01
-
 
14
 * 
-
 
15
 */
-
 
16
 
-
 
17
 
-
 
18
 
-
 
19
package com.amazonservices.mws.orders.model;
-
 
20
 
-
 
21
import java.util.List;
-
 
22
 
-
 
23
/**
-
 
24
 * This class contains response metadata for each MWS request.
-
 
25
 */
-
 
26
public class ResponseHeaderMetadata {
-
 
27
  private String requestId;
-
 
28
  private List<String> responseContext;
-
 
29
  private String timestamp;
-
 
30
 
-
 
31
  public ResponseHeaderMetadata() {}
-
 
32
 
-
 
33
  public ResponseHeaderMetadata(String requestId, List<String> responseContext, String timestamp) {
-
 
34
    this.requestId = requestId;
-
 
35
    this.responseContext = responseContext;
-
 
36
    this.timestamp = timestamp;
-
 
37
  }
-
 
38
 
-
 
39
  /**
-
 
40
   * Gets the x-mws-request-id header value.
-
 
41
   */
-
 
42
  public String getRequestId() {
-
 
43
    return requestId;
-
 
44
  }
-
 
45
 
-
 
46
  /**
-
 
47
   * Gets the x-mws-response-context header value.
-
 
48
   */
-
 
49
  public List<String> getResponseContext() {
-
 
50
    return responseContext;
-
 
51
  }
-
 
52
 
-
 
53
  /**
-
 
54
   * Gets the x-mws-timestamp header value.
-
 
55
   */
-
 
56
  public String getTimestamp() {
-
 
57
    return timestamp;
-
 
58
  }
-
 
59
 
-
 
60
  @Override
-
 
61
  public String toString() {
-
 
62
    StringBuilder sb = new StringBuilder();
-
 
63
    sb.append("requestId : " + requestId + "\n");
-
 
64
    sb.append("responseContext : " + responseContext + "\n");
-
 
65
    sb.append("timestamp : " + timestamp);
-
 
66
    return sb.toString();
-
 
67
  }
-
 
68
}
-
 
69