public final class HttpUtils extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static boolean |
canRetry(int code) |
static void |
ensureSuccessStatusCode(int code) |
static void |
ensureSuccessStatusCode(Response response) |
static String |
getContentFileExtension(Headers headers,
MediaType contentType) |
static String |
getContentFileExtension(Response response) |
static MediaType |
getContentType(String extension) |
static boolean |
isSuccessful(int code) |
public static boolean isSuccessful(int code)
public static boolean canRetry(int code)
public static void ensureSuccessStatusCode(int code)
throws HttpResponseException
public static void ensureSuccessStatusCode(Response response)
throws HttpResponseException
public static MediaType getContentType(String extension)
public static String getContentFileExtension(Headers headers, MediaType contentType)
public static String getContentFileExtension(Response response)