public class JsonResponseUtil extends Object
| Constructor and Description |
|---|
JsonResponseUtil() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
populate(JsonRpcResponse response) |
JsonResponseUtil |
withIgnoreResponseKey()
During response decomposition we will ignore default key and use raw response structure as result
Map. |
JsonResponseUtil |
withResponseKey(String responseKey) |
JsonResponseUtil |
withResponseType(Class<?> clazz) |
JsonResponseUtil |
withSubTypeClazz(Class<?> clazz) |
JsonResponseUtil |
withSubtypeKey(String subTypeKey) |
public Map<String,Object> populate(JsonRpcResponse response)
public JsonResponseUtil withResponseKey(String responseKey)
responseKey - - Key used to store response value in result Map.JsonResponseUtil.public JsonResponseUtil withResponseType(Class<?> clazz)
clazz- - A type of response which will be use instead of default Map.JsonResponseUtil.public JsonResponseUtil withIgnoreResponseKey()
Map.JsonResponseUtil.public JsonResponseUtil withSubtypeKey(String subTypeKey)
subTypeKey - - Key which is used to put subtype to result map.JsonResponseUtil.public JsonResponseUtil withSubTypeClazz(Class<?> clazz)
clazz - - type of the subtype.JsonResponseUtil.Copyright © 2018. All Rights Reserved.