Metacat High Level API |
Back | Home | Next |
Multiple client interface
Since Metacat Servlet is a subclass of HttpServlet, this allows any client
to communicate with Metacat by essentially passing a URL with embedded
servlet parameters.
Metacat Servlet provides an HTTP Interface and can handle GET and POST
requests. HTTP requests are sent from the the Client application and contain
a number of parameters. These parameters, in form of name/value pairs, provide
input data for the Servlet and also provide the Servlet any extra information it
needs to handle the request.
Extensions of HttpServlet
Metacat Server adds the functionality for writing, quering, and reading of
XML stored in the Metacat Database as well functions for validating and
transforming XML documents.
Action | Supplemental Parameters | Description |
login |
|
Log the user in. |
logout | none | Log the current user out and destroy the associated session. |
query |
|
Perform a free text query. |
squery |
|
Perform a structured query. |
read |
|
Get docid from the database and return it in qformat form. |
insert |
|
Insert doctext into the database. |
update |
|
Overwrite a document with a new one and give the new one the same docid but with next revision number. |
delete |
|
Delete the specified docid from the database. |
validate |
|
Validate docid against its DTD. |
getaccesscontrol |
|
Get ACL for document with that docid |
getprincipals | none | Get all users and groups in the current authentication schema |
getdoctypes | none | Get all doctypes currently available in Metacat Catalog System. |
getdtdschema |
|
Read DTD or XMLSchema file for the specified doctype. |
getdataguide |
Deprecated. Use getdtdschema action instead. |
Read a dataguide for doctype. |
getlastdocid |
|
Get the latest docid with rev number used by user. |
protocoltest |
|
Test the protocol handlers installed for metacat:// URLs. |
export |
|
Exports a data package in a zip file. |
Action | Supplemental Parameters | Description |
forcereplicate |
|
Force this server to get docid from the remote host. |
getall | none | Forces the local server to check all known servers for updated documents. |
getcatalog | none | Sends the contents of the xml_catalog table encoded in XML. |
getlock |
|
Request a lock on docid. |
gettime | none | Return the local time on this server. |
servercontrol |
|
Perform subaction on the Replication daemon. |
read |
|
Sends docid to the remote host. |
start |
|
Start the Replication daemon with a time interval of deltaT. |
stop | none | Stop the Replication daemon. |
update | none | Send a list of all documents on the local server along with their revision numbers. |