public class RestXPathProcessor extends Object
Constructor and Description |
---|
RestXPathProcessor(IStorage pDatabase)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
getXpathResource(String resourceName,
long rId,
String query,
boolean doNodeId,
Long doRevision,
OutputStream output,
boolean doWrap)
Getting part of the XML based on a XPath query
|
OutputStream |
getXpathResource(String resourceName,
String xpath,
boolean nodeid,
Long revision,
OutputStream output,
boolean wrapResult)
Getting part of the XML based on a XPath query
|
public RestXPathProcessor(IStorage pDatabase)
pDatabase
- path to the storagepublic OutputStream getXpathResource(String resourceName, String xpath, boolean nodeid, Long revision, OutputStream output, boolean wrapResult) throws IOException, TTException
resourceName
- where the content should be extractedxpath
- contains XPath querynodeid
- To response the resource with a restid for each node ( true
) or without (
false
).revision
- The revision of the requested resource. If null
,
than response the latest revision.output
- The OutputStream reference which have to be modified and
returnedIOException
- The exception occurred.TTException
public void getXpathResource(String resourceName, long rId, String query, boolean doNodeId, Long doRevision, OutputStream output, boolean doWrap) throws TTException
resourceName
- where the content should be extractedquery
- contains XPath queryrId
- To response the resource with a restid for each node ( true
) or without (
false
).doRevision
- The revision of the requested resource. If null
,
than response the latest revision.output
- The OutputStream reference which have to be modified and
returneddoNodeId
- specifies whether node id should be showndoWrap
- output of result elementsTTException
Copyright © 2013. All Rights Reserved.