|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.axyana.qizxopen.xquery.XQueryBasicEngine
An implementation of a XQuery system.
In standalone applications, this is the first object to create in order
to obtain a XQueryConnection
, which is the primary interface
for XQuery applications.
An XQuery Engine manages several categories of resources. These resources are shared by the connections created from it:
Field Summary | |
static Namespace |
EXTENSIONS_NS
Namespace of extension functions. |
static java.lang.String |
EXTENSIONS_URI
Namespace URI of extension functions. |
static net.axyana.qizxopen.xquery.impl.PredefinedModule |
PREDEFINED_MODULE
Shared predefined module with extensions. |
Constructor Summary | |
XQueryBasicEngine()
Creates an Engine equipped with a DocumentManager, a XQuery Module Manager, and a Library Engine, all these objects using the current directory as base location. |
Method Summary | |
void |
authorizeClass(java.lang.String className)
Allow a Java class to be used as extension (more precisely, its public methods can be called as extension functions). |
XQueryConnection |
getConnection(java.util.Properties properties)
Opens a new connection without access to an XML Library. |
XQueryConnection |
getConnection(java.lang.String libraryPath,
java.util.Properties properties)
Opens a new connection to a particular XML Library. |
XQueryDataSource |
getDataSource(java.lang.String libraryPath)
Creates a XQueryDataSource |
DocumentManager |
getDocumentManager()
Returns the DocumentManager currently in use. |
XQModuleManager |
getModuleManager()
Returns the DocumentManager currently in use. |
XQMetadata |
getProductInfo()
Returns an object describing the XQuery Engine (Similar to XQMetaData in the XQJ specification). |
boolean |
isServer()
Returns true if startAsServer() was used. |
static XQueryServer |
remoteConnection(java.lang.String uri)
Convenience method for connecting to a remote XQuery server. |
void |
setDocumentManager(DocumentManager value)
Changes the DocumentManager used. |
void |
setModuleManager(XQModuleManager value)
Changes the ModuleManager used. |
void |
shutdown(int gracePeriod,
boolean forceExit)
Releases all resources, closes all active connections. |
void |
startAsServer(int port)
Makes the server accessible for Java RMI remote connections. |
void |
startup()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String EXTENSIONS_URI
public static Namespace EXTENSIONS_NS
public static net.axyana.qizxopen.xquery.impl.PredefinedModule PREDEFINED_MODULE
Constructor Detail |
public XQueryBasicEngine() throws java.io.IOException
Further configuration must be performed by retrieving these objects and configuring them individually.
Method Detail |
public static XQueryServer remoteConnection(java.lang.String uri) throws XQueryException
uri
- URI or name of a XQuest server. It can be a simple name or
an URI of the form //remote_host[:registry_port]/name.
XQueryException
public void startAsServer(int port) throws XQueryException, java.rmi.RemoteException
port
- a specific port, or generally 0 if the port is managed
by the RMI registry.
XQueryException
java.rmi.RemoteException
public boolean isServer()
public void startup() throws XQueryException
XQueryException
public DocumentManager getDocumentManager()
public void setDocumentManager(DocumentManager value)
public XQModuleManager getModuleManager()
public void setModuleManager(XQModuleManager value)
public void authorizeClass(java.lang.String className)
Caution: This is a security feature. Using this method enforces an explicit control: all classes to be used as extensions must then be explicitly declared. By default, any accessible class can be used.
className
- fully qualified name of Java class, for example
java.io.File
public XQueryConnection getConnection(java.util.Properties properties) throws XQueryException, java.rmi.RemoteException
XQueryServer
Access to XML Libraries is still possible provided that there is a XMLLibraryServer and access rights are granted.
getConnection
in interface XQueryServer
properties
- a set of named properties for authentification
and configuration purpose. May be null if no authentification enforced.
XQueryException
java.rmi.RemoteException
public XQueryConnection getConnection(java.lang.String libraryPath, java.util.Properties properties) throws XQueryException, java.rmi.RemoteException
This Library becomes the default one. Access to other Libraries controlled by the same XMLLibraryEngine is possible if access rights are granted.
getConnection
in interface XQueryServer
XQueryException
java.rmi.RemoteException
public void shutdown(int gracePeriod, boolean forceExit) throws java.rmi.RemoteException
gracePeriod
- time in milliseconds allowed for connections
to commit pending transactions.forceExit
- if true, force a System exit (in fact, call the
overriddable method exitHook() of the engine.
java.rmi.RemoteException
public XQMetadata getProductInfo()
getProductInfo
in interface XQueryServer
public XQueryDataSource getDataSource(java.lang.String libraryPath) throws XQueryException
XQueryServer
getDataSource
in interface XQueryServer
XQueryException
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |