Mehdisouid / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

GoogleJsonResponseException: add getETagHeader() #664

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-api-java-client.googlecode.com/hg/1.12.0-beta/com/google/a
pi/client/googleapis/json/GoogleJsonResponseException.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Right now to get the ETag header you need to do this:

catch (GoogleJsonResponseException e) {
  String etag = e.getHeaders().getETag();
}

This is reasonably simple, but ETag is a sufficiently common header that we 
could make even simpler:

catch (GoogleJsonResponseException e) {
  String etag = e.getETagHeader();
}

Original issue reported on code.google.com by yan...@google.com on 20 Nov 2012 at 7:33

GoogleCodeExporter commented 9 years ago
In hind-sight I think an ETag header on the error response makes no sense.  
Let's just cancel this feature for now and request for feedback.

Original comment by yan...@google.com on 10 Dec 2012 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 10 Dec 2012 at 9:23