public final class RespData extends HashMap<String,Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
RespData.Config |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
static RespData |
failure(String sm)
Failure Response
|
<T> T |
getData()
Get Response data
|
String |
getSc()
Get Current Request's response status code
|
String |
getSm()
Get Current Request's response status message
|
static RespData |
invalidReq()
invalid request
|
static RespData |
invalidResp()
invalid response
|
static RespData |
ret(RespData data)
Response result
|
static RespData |
success()
Success Response
|
static RespData |
success(Object data)
Success Response
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static RespData invalidReq()
public static RespData invalidResp()
public static RespData success()
public static RespData success(Object data)
public static RespData failure(String sm)
sm - response status messagepublic String getSc()
public String getSm()
public <T> T getData()
Copyright © 2020. All rights reserved.