public final class FetchResponseUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
getResponseAsJson(HttpResponse response,
String id,
String body,
boolean getFullHeaders)
Convert a response to a JSON object.
|
public static Map<String,Object> getResponseAsJson(HttpResponse response, String id, String body, boolean getFullHeaders)
response - the response bodyid - the response id, or null if not neededbody - string to use as the body of the response.getFullHeaders - whether all response headers should be included,
or only a small setCopyright © 2007-2012. All Rights Reserved.