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 |
delete |
|
Delete the specified docid from the database. |
getabstract |
|
Get the abstract data indicated by abstractpath from docid |
getdatadoc |
|
Return docid and all related files in a ZIP stream. |
getdataguide |
|
Return the dataguide for docid. |
getdataport | none | Authenticate the user and give a port number on which to transfer data. |
getdoctypes | none | Return all registered doctypes. |
insert |
|
Insert doctext into the database. |
login |
|
Log the user in. |
logout | none | Log the current user out and destroy the associated session. |
protocoltest |
|
Test the protocol handlers installed for metacat:// URLs. |
query |
|
Perform a free text query. |
read |
|
Get docid from the database and return it in qformat form. |
squery |
|
Perform a structured query. |
update |
|
Overwrite a document with a new one and give the new one the same docid. |
validate |
|
Validate docid against its DTD. |
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. |