public class HttpResponseMetadataHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_HASH |
static String |
IMAGE_HEIGHT |
static String |
IMAGE_WIDTH |
| Constructor and Description |
|---|
HttpResponseMetadataHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHash(HttpResponse response)
Calculate hash value for response and update metadata value (DATA_HASH)
|
static HttpResponse |
updateHash(HttpResponse response,
HttpResponseMetadataHelper helper) |
static HttpResponse |
updateMetadata(HttpResponse response,
Map<String,String> values)
Return a copy of input response with additional metadata values.
|
public static final String DATA_HASH
public static final String IMAGE_HEIGHT
public static final String IMAGE_WIDTH
public static HttpResponse updateMetadata(HttpResponse response, Map<String,String> values)
response - source responsevalues - added metadata valuespublic String getHash(HttpResponse response)
public static HttpResponse updateHash(HttpResponse response, HttpResponseMetadataHelper helper)
Copyright © 2007-2012. All Rights Reserved.