Skip to content

Commit

Permalink
Release 2.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
IBMeric authored and GitHub Enterprise committed Apr 22, 2022
1 parent 79bae81 commit f869ade
Show file tree
Hide file tree
Showing 1,492 changed files with 54,818 additions and 14,126 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
target/
*settings.xml
settings.xml
*.iml
.idea/*

Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## 2.11.2

### Content

#### Defect Fixes

* COSSDK-88569: <https://github.com/IBM/ibm-cos-sdk-java/issues/52>
* AWS Patches aligned to version 1.12.137 of the AWS Java SDK

## 2.11.1

### Content
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ bin.includes = LICENSE.txt,\
META-INF/,\
.

jre.compilation.profile = JavaSE-1.6
jre.compilation.profile = JavaSE-1.8
2 changes: 1 addition & 1 deletion ibm-cos-java-sdk-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-pom</artifactId>
<version>2.11.1</version>
<version>2.11.2</version>
</parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-bom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ibm-cos-java-sdk-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-pom</artifactId>
<version>2.11.1</version>
<version>2.11.2</version>
</parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-bundle</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ibm-cos-java-sdk-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-pom</artifactId>
<version>2.11.1</version>
<version>2.11.2</version>
</parent>
<groupId>com.ibm.cos</groupId>
<artifactId>ibm-cos-java-sdk-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2013-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2013-2022 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2022 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2010-2022 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.
Expand Down Expand Up @@ -108,6 +108,11 @@ public enum ErrorType {
*/
private byte[] rawResponse;

/**
* Track proxy host if configured, in case error response came from proxy instead of AWS.
*/
private String proxyHost;

/**
* Constructs a new AmazonServiceException with the specified message.
*
Expand Down Expand Up @@ -264,7 +269,9 @@ public String getMessage() {
+ " (Service: " + getServiceName()
+ "; Status Code: " + getStatusCode()
+ "; Error Code: " + getErrorCode()
+ "; Request ID: " + getRequestId() + ")";
+ "; Request ID: " + getRequestId()
+ "; Proxy: " + getProxyHost()
+ ")";
}

/**
Expand Down Expand Up @@ -312,4 +319,23 @@ public Map<String, String> getHttpHeaders() {
public void setHttpHeaders(Map<String, String> httpHeaders) {
this.httpHeaders = httpHeaders;
}

/**
* Returns proxy host if configured.
* If using a proxy, then it's possible that the error response came from the proxy instead of AWS.
*
* @return proxy host if configured or {@code null}
*/
public String getProxyHost() {
return proxyHost;
}

/**
* Sets proxy host.
*
* @param proxyHost the proxy host to set
*/
public void setProxyHost(String proxyHost) {
this.proxyHost = proxyHost;
}
}

0 comments on commit f869ade

Please sign in to comment.