edu.ucsb.nceas.metacat
Class MetaCatServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--edu.ucsb.nceas.metacat.MetaCatServlet
- public class MetaCatServlet
- extends javax.servlet.http.HttpServlet
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=getdocument -- display an XML document in XML or HTML
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 //DFH
datadoc -- data document name (id) //DFH
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doOptions,
doPut,
doTrace,
getLastModified,
service,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
getServletInfo,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MetaCatServlet
public MetaCatServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Initialize the servlet by creating appropriate database connections
- Overrides:
- init in class javax.servlet.GenericServlet
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
- Overrides:
- doGet in class javax.servlet.http.HttpServlet
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
- Overrides:
- doPost in class javax.servlet.http.HttpServlet