edu.ucsb.nceas.metacat
Class MetaCatServlet
edu.ucsb.nceas.metacat.MetaCatServlet
- public class MetaCatServlet
A metadata catalog server implemented as a Java Servlet
Valid parameters are:
action=query -- query the values of all elements and attributes
and return a result set of nodes
action=squery -- structured query (see pathquery.dtd)
action=insert -- insert an XML document into the database store
action=update -- update an XML document that is in the database store
action=delete -- delete an XML document from the database store
action=validate -- vallidate the xml contained in valtext
action=getdocument -- display an XML document in XML or HTML
doctype -- document type list returned by the query (publicID)
qformat=xml -- display resultset from query in XML
qformat=html -- display resultset from query in HTML
docid=34 -- display the document with the document ID number 34
doctext -- XML text of the document to load into the database
query -- actual query text (to go with 'action=query' or 'action=squery')
valtext -- XML text to be validated
action=getdatadoc -- retreive a stored datadocument
datadoc -- data document name (id)
The particular combination of parameters that are valid for each
particular action value is quite specific. This documentation
will be reorganized to reflect this information.
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "GET" method requests from HTTP clients |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "POST" method requests from HTTP clients |
void |
init(javax.servlet.ServletConfig config)
Initialize the servlet by creating appropriate database connections |
MetaCatServlet
public MetaCatServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Initialize the servlet by creating appropriate database connections
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Handle "GET" method requests from HTTP clients
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Handle "POST" method requests from HTTP clients
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.