@SuppressWarnings("unchecked")
 @Override
 public String success(HttpResponse hr) throws Exception {
   Map<String, ?> rsp = objectMapper.readValue(hr.getContent(), Map.class);
   return (String) rsp.get(REVISION_FIELD_NAME);
 }
예제 #2
0
 @Override
 public DocumentOperationResult success(HttpResponse hr) throws Exception {
   return objectMapper.readValue(hr.getContent(), DocumentOperationResult.class);
 }