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=query -- search text values for document match
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
action=getdocument -- display an XML document in XML or HTML
docid=34 -- display the document with the document ID number 34
action=putdocument -- load an XML document into the database store
doctext -- XML text ofthe document to load into the database
query -- actual query text (to go with 'action=query')
action=validate -- vallidate the xml contained in validatetext
valtext -- XML text to be validated action=getdatadoc -- retreive a stored datadocument datadoc -- data document name (id)


Constructor Summary
MetaCatServlet()
           
 
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
 

Constructor Detail

MetaCatServlet

public MetaCatServlet()
Method Detail

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.