|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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= -- export a zip format for data packadge
action=read -- read any metadata/data file from Metacat and from Internet
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
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
qformat=zip -- zip resultset from query
docid=34 -- display the document with the document ID number 34
doctext -- XML text of the document to load into the database
acltext -- XML access text for a document to load into the database
dtdtext -- XML DTD text for a new DTD to load into Metacat XML Catalog
query -- actual query text (to go with 'action=query' or 'action=squery')
valtext -- XML text to be validated
action=getaccesscontrol -- retrieve acl info for Metacat document
action=getalldocids -- retrieves a list of all docids registered with the system
scope --can limit the query by the scope of the id
action=isregistered -- checks to see if the provided docid is registered
docid --the docid to check
action=getdoctypes -- retrieve all doctypes (publicID)
action=getdtdschema -- retrieve a DTD or Schema file
action=getdataguide -- retrieve a Data Guide
action=getprincipals -- retrieve a list of principals in XML
datadoc -- data document name (id)
action=getlog -- get a report of events that have occurred in the system
ipAddress -- filter on one or more IP addresses
principal -- filter on one or more principals (LDAP DN syntax)
docid -- filter on one or more document identifiers (with revision)
event -- filter on event type (e.g., read, insert, update, delete)
start -- filter out events before the start date-time
end -- filter out events before the end date-time
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.
| Field Summary | |
|---|---|
static java.lang.String |
EML2KEYWORD
|
static java.lang.String |
NAMESPACEKEYWORD
|
static java.lang.String |
NONAMESPACELOCATION
|
static java.lang.String |
SCHEMALOCATIONKEYWORD
|
static java.lang.String |
XMLFORMAT
|
| Constructor Summary | |
|---|---|
MetaCatServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Close all db connections from the pool |
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 |
static java.util.Hashtable |
getSessionHash()
Method to get session table which store the session info |
void |
init(javax.servlet.ServletConfig config)
Initialize the servlet by creating appropriate database connections |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SCHEMALOCATIONKEYWORD
public static final java.lang.String NONAMESPACELOCATION
public static final java.lang.String NAMESPACEKEYWORD
public static final java.lang.String EML2KEYWORD
public static final java.lang.String XMLFORMAT
| Constructor Detail |
|---|
public MetaCatServlet()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic static java.util.Hashtable getSessionHash()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||