Class XMLResponseAggregator
- java.lang.Object
-
- org.kie.server.router.proxy.aggragate.XMLResponseAggregator
-
- All Implemented Interfaces:
ResponseAggregator
- Direct Known Subclasses:
JaxbXMLResponseAggregator,XstreamXMLResponseAggregator
public abstract class XMLResponseAggregator extends Object implements ResponseAggregator
-
-
Constructor Summary
Constructors Constructor Description XMLResponseAggregator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringaggregate(List<String> data)Stringaggregate(List<String> data, String sortBy, boolean ascending, Integer page, Integer pageSize)protected abstract voidcopyNodes(NodeList children, Document target, Node targetNode)protected voiddeepMerge(Node sourceNode, Node targetNode, List<String> nodes, Document target)protected abstract StringgetElementLevel(String rootNode)protected abstract StringgetRootNode(String rootNode)protected abstract List<String>knownNames()DocumentnewDoc(String xml)protected Transformerpage(String root, String node, Integer start, Integer size, Document source)protected Transformersort(String root, String level, String fieldName, boolean ascending, Document source)protected abstract StringsortBy(String fieldName)protected booleansupports(String expectedType, Object... acceptTypes)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.server.router.proxy.aggragate.ResponseAggregator
supports
-
-
-
-
Method Detail
-
aggregate
public String aggregate(List<String> data)
- Specified by:
aggregatein interfaceResponseAggregator
-
aggregate
public String aggregate(List<String> data, String sortBy, boolean ascending, Integer page, Integer pageSize)
- Specified by:
aggregatein interfaceResponseAggregator
-
sort
protected Transformer sort(String root, String level, String fieldName, boolean ascending, Document source) throws Exception
- Throws:
Exception
-
page
protected Transformer page(String root, String node, Integer start, Integer size, Document source) throws Exception
- Throws:
Exception
-
deepMerge
protected void deepMerge(Node sourceNode, Node targetNode, List<String> nodes, Document target)
-
-