aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-03-10 04:14:51 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-10 04:17:02 -0800
commitdeccc485603c004daad959fd747f1c0c9efc4f00 (patch)
tree6cdf8d42e01fd92fb32d5ef5f05325d7ea0d39e0 /src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java
parent7e50ced9bb59b4ab445edd7904bf31601fd2cea0 (diff)
remote/http: support refresh of oauth2 tokens in the remote cache.
Closes #4622. PiperOrigin-RevId: 188595430
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java b/src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java
index 0a5368b8d4..43a9c22689 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/blobstore/http/HttpException.java
@@ -14,19 +14,19 @@
package com.google.devtools.build.lib.remote.blobstore.http;
-import io.netty.handler.codec.http.HttpResponseStatus;
+import io.netty.handler.codec.http.HttpResponse;
import java.io.IOException;
/** An exception that propagates the http status. */
final class HttpException extends IOException {
- private final HttpResponseStatus status;
+ private final HttpResponse response;
- HttpException(HttpResponseStatus status, String message, Throwable cause) {
+ HttpException(HttpResponse response, String message, Throwable cause) {
super(message, cause);
- this.status = status;
+ this.response = response;
}
- public HttpResponseStatus status() {
- return status;
+ public HttpResponse response() {
+ return response;
}
}