obrand
Jun 15th, 2011, 04:08 PM
Hi there,
I have implemented the ETag header on the server side and would like to know how to handle this case on the client.
Right now, I have:
ResponseEntity<MyObject> responseEntity = restTemplate.exchange(url,
HttpMethod.GET, requestEntity, MyObject.class);
As a 304 response does not send back a body, I get a: ResourceAccessException
What is the best way to treat the 304 case?
Thanks in advance
Olivier
I have implemented the ETag header on the server side and would like to know how to handle this case on the client.
Right now, I have:
ResponseEntity<MyObject> responseEntity = restTemplate.exchange(url,
HttpMethod.GET, requestEntity, MyObject.class);
As a 304 response does not send back a body, I get a: ResourceAccessException
What is the best way to treat the 304 case?
Thanks in advance
Olivier