public final class TsukinhiWebApiUtil extends Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
TsukinhiWebApiUtil.ExportStatus
出力状況ステータス.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static int |
getCount(Map<String,Object> response)
APIレスポンスデータから出力件数を取得.
|
static List<Map<String,String>> |
getCsv(Map<String,Object> response,
String csvKey,
List<String> columnList)
APIレスポンスからCSVデータを取得.
|
static boolean |
getError(Map<String,Object> response)
APIレスポンスから処理結果を取得.
|
static int |
getHttpCode(Map<String,Object> response)
APIレスポンスからHTTPコードを取得.
|
static String |
getMessage(Map<String,Object> response)
APIレスポンスからメッセージを取得.
|
static String |
getStatus(Map<String,Object> response)
APIレスポンスからステータスを取得.
|
static String |
getTaskNo(Map<String,Object> response)
APIレスポンスからタスク番号を取得.
|
static boolean |
isError(Map<String,Object> response)
APIレスポンスからステータスを取得し、ステータスが「error」か判定する.
|
static boolean |
isFailure(Map<String,Object> response)
APIレスポンスからステータスを取得し、ステータスが「failure」か判定する.
|
static boolean |
isProcessing(Map<String,Object> response)
APIレスポンスからステータスを取得し、ステータスが「processing」か判定する.
|
static boolean |
isReserved(Map<String,Object> response)
APIレスポンスからステータスを取得し、ステータスが「reserved」か判定する.
|
static boolean |
isSuccess(Map<String,Object> response)
APIレスポンスからステータスを取得し、ステータスが「success」か判定する.
|
public static boolean getError(Map<String,Object> response)
未設定の場合は「false(エラーなし)」が返却されます。
response
- APIレスポンスpublic static int getHttpCode(Map<String,Object> response)
未設定の場合は「-100」が返却されます。
response
- APIレスポンスpublic static String getMessage(Map<String,Object> response)
response
- APIレスポンスpublic static String getStatus(Map<String,Object> response)
response
- APIレスポンスpublic static boolean isSuccess(Map<String,Object> response)
response
- APIレスポンスpublic static boolean isError(Map<String,Object> response)
response
- APIレスポンスpublic static boolean isReserved(Map<String,Object> response)
response
- APIレスポンスpublic static boolean isProcessing(Map<String,Object> response)
response
- APIレスポンスpublic static boolean isFailure(Map<String,Object> response)
response
- APIレスポンスpublic static String getTaskNo(Map<String,Object> response)
response
- APIレスポンスpublic static int getCount(Map<String,Object> response)
response
- APIレスポンスデータCopyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.