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. |
spatial_query |
|
Perform a spatial query. These queries may include any of the queries supported by the WFS / WMS standards. |
read |
|
Get docid from the database and return it in qformat form. |
readinlinedata |
|
Read inline data only. |
insert |
|
Insert an XML document into the database. |
insertmultipart |
|
insert an xml document into the database using multipart encoding. |
update |
|
Overwrite an XML document with a new one and give the new one the same docid but with next revision number. |
upload |
|
Upload (insert or update) a data document into metacat. Data files are stored on metacat and may be in any format (binary or text), but they are all treated as if they were binary. |
delete |
|
Delete the specified docid from the database. |
setaccess |
|
Change access permissions for a user on a document. |
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. |
getalldocids |
|
retrieves a list of all docids registered with the system. |
isregistered |
|
checks if an individual document exists in either the xml_documents or xml_revisions tables. |
getrevisionanddoctype |
|
Return the revision and doctype of a document. The output is String that looks like "rev;doctype" |
getversion - get Metacat version. | none | Returns the current version of Metacat as XML. |
protocoltest |
|
Test the protocol handlers installed for metacat:// URLs. |
export |
|
Exports a data package in a zip file. |
getlog |
|
Print a report from the Metacat event log. |
getloggedinuserinfo | none | Get user info for the currently logged in user. |
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. |