public class JSONResponseAggregator extends Object implements ResponseAggregator
| Constructor and Description |
|---|
JSONResponseAggregator() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregate(List<String> data) |
String |
aggregate(List<String> data,
String sortBy,
boolean ascending,
Integer page,
Integer pageSize) |
protected org.json.JSONObject |
deepMerge(org.json.JSONObject source,
org.json.JSONObject target) |
protected org.json.JSONArray |
deepMergeArray(org.json.JSONArray source,
org.json.JSONArray target) |
protected org.json.JSONObject |
newJson(String data) |
protected org.json.JSONArray |
newJsonArray(String data) |
protected String |
sort(String fieldName,
boolean ascending,
Integer page,
Integer pageSize,
org.json.JSONObject source) |
protected String |
sortArray(String fieldName,
boolean ascending,
Integer page,
Integer pageSize,
org.json.JSONArray source) |
protected void |
sortList(String fieldName,
org.json.JSONArray array,
boolean ascending,
int page,
int pageSize) |
boolean |
supports(Object... acceptTypes) |
public String aggregate(List<String> data)
aggregate in interface ResponseAggregatorpublic String aggregate(List<String> data, String sortBy, boolean ascending, Integer page, Integer pageSize)
aggregate in interface ResponseAggregatorprotected String sort(String fieldName, boolean ascending, Integer page, Integer pageSize, org.json.JSONObject source)
protected org.json.JSONObject deepMerge(org.json.JSONObject source,
org.json.JSONObject target)
protected org.json.JSONArray deepMergeArray(org.json.JSONArray source,
org.json.JSONArray target)
protected String sortArray(String fieldName, boolean ascending, Integer page, Integer pageSize, org.json.JSONArray source)
protected org.json.JSONObject newJson(String data)
protected org.json.JSONArray newJsonArray(String data)
public boolean supports(Object... acceptTypes)
supports in interface ResponseAggregatorCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.