public abstract class XMLResponseAggregator extends Object implements ResponseAggregator
| Constructor and Description |
|---|
XMLResponseAggregator() |
| 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 abstract void |
copyNodes(NodeList children,
Document target,
Node targetNode) |
protected void |
deepMerge(Node sourceNode,
Node targetNode,
List<String> nodes,
Document target) |
protected abstract String |
getElementLevel(String rootNode) |
protected abstract String |
getRootNode(String rootNode) |
protected abstract List<String> |
knownNames() |
Document |
newDoc(String xml) |
protected Transformer |
page(String root,
String node,
Integer start,
Integer size,
Document source) |
protected Transformer |
sort(String root,
String level,
String fieldName,
boolean ascending,
Document source) |
protected abstract String |
sortBy(String fieldName) |
protected boolean |
supports(String expectedType,
Object... acceptTypes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic 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 Transformer sort(String root, String level, String fieldName, boolean ascending, Document source) throws Exception
Exceptionprotected Transformer page(String root, String node, Integer start, Integer size, Document source) throws Exception
Exceptionprotected void deepMerge(Node sourceNode, Node targetNode, List<String> nodes, Document target)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.