public final class ResponseParserUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UTF8 |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkForManagementPortException(int statusCode,
Headers headers) |
static com.google.common.collect.ImmutableSet<java.lang.Integer> |
createExpectedSet(int[] expectedStatuses) |
static FailedRequestException |
createFailedRequest(WebResponse response,
int[] expectedStatusCodes) |
static ChecksumType.Type |
determineChecksumType(Headers headers) |
static java.lang.String |
getFirstHeaderValue(Headers headers,
java.lang.String key) |
protected static java.lang.String |
getRequestId(Headers headers) |
static long |
getSizeFromHeaders(Headers headers) |
static Error |
parseErrorResponse(java.lang.String responseString) |
static boolean |
validateStatusCode(int statusCode,
int... expectedStatuses) |
public static final java.lang.String UTF8
public static boolean validateStatusCode(int statusCode, int... expectedStatuses)
public static ChecksumType.Type determineChecksumType(Headers headers)
protected static java.lang.String getRequestId(Headers headers)
public static java.lang.String getFirstHeaderValue(Headers headers, java.lang.String key)
public static long getSizeFromHeaders(Headers headers)
public static boolean checkForManagementPortException(int statusCode, Headers headers)
public static Error parseErrorResponse(java.lang.String responseString)
public static com.google.common.collect.ImmutableSet<java.lang.Integer> createExpectedSet(int[] expectedStatuses)
public static FailedRequestException createFailedRequest(WebResponse response, int[] expectedStatusCodes) throws java.io.IOException
java.io.IOException