aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
index 87abdda082..76d1773623 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
@@ -43,10 +43,6 @@ import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
* <p>GET /{ac,cas}/1234 HTTP/1.1 GET method fetches a blob with the specified key. In this example
* the key is 1234. A status code of 200 should be followed by the content of blob. Status code of
* 404 or 204 means the key cannot be found.
- *
- * <p>HEAD /{ac,cas}/1234 HTTP/1.1 HEAD method checks to see if the specified key exists in the blob
- * store. A status code of 200 indicates the key is found in the blob store. A status code of 404
- * indicates the key is not found in the blob store.
*/
public final class RestBlobStore implements SimpleBlobStore {
@@ -98,19 +94,7 @@ public final class RestBlobStore implements SimpleBlobStore {
@Override
public boolean containsKey(String key) throws IOException {
- HttpResponse response = null;
- try {
- response =
- requestFactory
- .buildHeadRequest(new GenericUrl(baseUrl + "/" + CAS_PREFIX + "/" + key))
- .setThrowExceptionOnExecuteError(false)
- .execute();
- return HttpStatus.SC_OK == response.getStatusCode();
- } finally {
- if (response != null) {
- response.disconnect();
- }
- }
+ throw new UnsupportedOperationException("HTTP Caching does not use this method.");
}
@Override