Examples of headForHeaders()


Examples of org.springframework.web.client.RestTemplate.headForHeaders()

  public <B, K> RiakMetaData getMetaData(B bucket, K key) {
    RestTemplate restTemplate = getRestTemplate();
    HttpHeaders headers;
    try {
      headers = restTemplate.headForHeaders(defaultUri, bucket, key);
      RiakMetaData meta = extractMetaData(headers);
      meta.setBucket((null != bucket ? bucket.toString() : null));
      meta.setKey((null != key ? key.toString() : null));
      return meta;
    } catch (ResourceAccessException e) {
View Full Code Here

Examples of org.springframework.web.client.RestTemplate.headForHeaders()

    if (null != obj) {
      String bucketName = (null != bucketKeyPair.getBucket() ? bucketKeyPair.getBucket()
          .toString() : requiredType.getName());
      RestTemplate restTemplate = getRestTemplate();
      try {
        HttpHeaders resp = restTemplate.headForHeaders(defaultUri,
            bucketName,
            bucketKeyPair.getKey());
        if (!obj.getMetaData()
            .getProperties()
            .get("ETag")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.