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, wait
supports
public String aggregate(List<String> data)
aggregate
in interface ResponseAggregator
public String aggregate(List<String> data, String sortBy, boolean ascending, Integer page, Integer pageSize)
aggregate
in interface ResponseAggregator
protected Transformer sort(String root, String level, String fieldName, boolean ascending, Document source) throws Exception
Exception
protected Transformer page(String root, String node, Integer start, Integer size, Document source) throws Exception
Exception
protected void deepMerge(Node sourceNode, Node targetNode, List<String> nodes, Document target)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.