|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.client.Stub
org.exist.soap.QuerySoapBindingStub
public class QuerySoapBindingStub
Field Summary |
---|
Fields inherited from interface javax.xml.rpc.Stub |
---|
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, USERNAME_PROPERTY |
Constructor Summary | |
---|---|
QuerySoapBindingStub()
|
|
QuerySoapBindingStub(Service service)
|
|
QuerySoapBindingStub(URL endpointURL,
Service service)
|
Method Summary | |
---|---|
String |
connect(String userId,
String password)
Create a new user session. |
void |
disconnect(String sessionId)
Release a user session. |
String |
getResource(String sessionId,
String path,
boolean indent,
boolean xinclude)
Retrieve a document from the database. |
byte[] |
getResourceData(String sessionId,
String path,
boolean indent,
boolean xinclude,
boolean processXSLPI)
Retrieve a document from the database. |
Collection |
listCollection(String sessionId,
String path)
Get information on the specified collection. |
QueryResponse |
query(String sessionId,
String xpath)
Execute a simple XPath query passed as string. |
String[] |
retrieve(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
Retrieve a set of query results from the last query executed within the current session. |
String[] |
retrieveByDocument(String sessionId,
int start,
int howmany,
String path,
boolean indent,
boolean xinclude,
String highlight)
For the specified document, retrieve a set of query results from the last query executed within the current session. |
Base64BinaryArray |
retrieveData(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
Retrieve a set of query results from the last query executed within the current session. |
QueryResponse |
xquery(String sessionId,
byte[] xquery)
Execute an XQuery. |
Methods inherited from class org.apache.axis.client.Stub |
---|
_createCall, _getCall, _getProperty, _getPropertyNames, _getService, _setProperty, addAttachment, clearAttachments, clearHeaders, extractAttachments, getAttachments, getHeader, getHeaders, getPassword, getPortName, getResponseHeader, getResponseHeaders, getTimeout, getUsername, removeProperty, setHeader, setHeader, setMaintainSession, setPassword, setPortName, setPortName, setTimeout, setUsername |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuerySoapBindingStub() throws AxisFault
AxisFault
public QuerySoapBindingStub(URL endpointURL, Service service) throws AxisFault
AxisFault
public QuerySoapBindingStub(Service service) throws AxisFault
AxisFault
Method Detail |
---|
public String getResource(String sessionId, String path, boolean indent, boolean xinclude) throws RemoteException
Query
getResource
in interface Query
sessionId
- a valid session id as returned by connect().path
- the full path to the document.indent
- should the document be pretty-printed (indented)?xinclude
- should xinclude tags be expanded?
RemoteException
public QueryResponse query(String sessionId, String xpath) throws RemoteException
Query
query
in interface Query
sessionId
- a valid session id as returned by connect().xpath
- XPath query string.
RemoteException
public String connect(String userId, String password) throws RemoteException
Query
connect
in interface Query
RemoteException
- if the user cannot log inpublic String[] retrieve(String sessionId, int start, int howmany, boolean indent, boolean xinclude, String highlight) throws RemoteException
Query
retrieve
in interface Query
sessionId
- a valid session id as returned by connect().start
- the first result to retrieve.howmany
- number of results to be returned.indent
- should the XML be pretty-printed?xinclude
- should xinclude tags be expanded?highlight
- highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public void disconnect(String sessionId) throws RemoteException
Query
disconnect
in interface Query
sessionId
- a valid session id as returned by connect().
RemoteException
public byte[] getResourceData(String sessionId, String path, boolean indent, boolean xinclude, boolean processXSLPI) throws RemoteException
Query
getResourceData
in interface Query
sessionId
- a valid session id as returned by connect().path
- the full path to the document.indent
- should the document be pretty-printed (indented)?xinclude
- should xinclude tags be expanded?processXSLPI
- should XSL processing instructions be processed?
RemoteException
public QueryResponse xquery(String sessionId, byte[] xquery) throws RemoteException
Query
xquery
in interface Query
sessionId
- a valid session id as returned by connect().xquery
- the XQuery script in binary encoding.
RemoteException
public Base64BinaryArray retrieveData(String sessionId, int start, int howmany, boolean indent, boolean xinclude, String highlight) throws RemoteException
Query
retrieveData
in interface Query
sessionId
- a valid session id as returned by connect().start
- the first result to retrieve.howmany
- number of results to be returned.indent
- should the XML be pretty-printed?xinclude
- should xinclude tags be expanded?highlight
- highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public String[] retrieveByDocument(String sessionId, int start, int howmany, String path, boolean indent, boolean xinclude, String highlight) throws RemoteException
Query
retrieveByDocument
in interface Query
sessionId
- a valid session id as returned by connect().start
- the first result to retrieve.howmany
- number of results to be returned.path
- the full path to the document.indent
- should the XML be pretty-printed?xinclude
- should xinclude tags be expanded?highlight
- highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public Collection listCollection(String sessionId, String path) throws RemoteException
Query
listCollection
in interface Query
sessionId
- a valid session id as returned by connect().path
- the full path to the collection.
RemoteException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |