Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / MetaCatServlet.html @ 107

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Sat May 20 14:25:42 AKDT 2000 -->
6
<TITLE>
7
: Class  MetaCatServlet
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12

    
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16
<TR>
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
  <TR ALIGN="center" VALIGN="top">
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
22
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
27
  </TR>
28
</TABLE>
29
</TD>
30
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
31
</EM>
32
</TD>
33
</TR>
34

    
35
<TR>
36
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
37
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/GenericXMLValidate.html"><B>PREV CLASS</B></A>&nbsp;
38
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
39
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
40
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
41
&nbsp;<A HREF="MetaCatServlet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
42
</TR>
43
<TR>
44
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
45
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
48
</TR>
49
</TABLE>
50
<!-- =========== END OF NAVBAR =========== -->
51

    
52
<HR>
53
<!-- ======== START OF CLASS DATA ======== -->
54
<H2>
55
<FONT SIZE="-1">
56
edu.ucsb.nceas.metacat</FONT>
57
<BR>
58
Class  MetaCatServlet</H2>
59
<PRE>
60
java.lang.Object
61
  |
62
  +--javax.servlet.GenericServlet
63
        |
64
        +--javax.servlet.http.HttpServlet
65
              |
66
              +--<B>edu.ucsb.nceas.metacat.MetaCatServlet</B>
67
</PRE>
68
<HR>
69
<DL>
70
<DT>public class <B>MetaCatServlet</B><DT>extends javax.servlet.http.HttpServlet</DL>
71

    
72
<P>
73
A metadata catalog server implemented as a Java Servlet
74

    
75
 <p>Valid parameters are:<br>
76
 action=query -- query the values of all elements and attributes
77
                     and return a result set of nodes<br>
78
 action=getdocument -- display an XML document in XML or HTML<br>
79
 qformat=xml -- display resultset from query in XML<br>
80
 qformat=html -- display resultset from query in HTML<br>
81
 action=getdocument -- display an XML document in XML or HTML<br>
82
 docid=34 -- display the document with the document ID number 34<br>
83
 action=putdocument -- load an XML document into the database store<br>
84
 doctext -- XML text ofthe document to load into the database<br>
85
 query -- actual query text (to go with 'action=query')<br>
86
 action=validate -- vallidate the xml contained in validatetext<br>
87
 valtext -- XML text to be validated
88
 action=getdatadoc -- retreive a stored datadocument  //DFH
89
 datadoc -- data document name (id)                   //DFH
90
<P>
91
<DL>
92
<DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#edu.ucsb.nceas.metacat.MetaCatServlet">Serialized Form</A></DL>
93
<HR>
94

    
95
<P>
96
<!-- ======== INNER CLASS SUMMARY ======== -->
97

    
98

    
99
<!-- =========== FIELD SUMMARY =========== -->
100

    
101

    
102
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
103

    
104
<A NAME="constructor_summary"><!-- --></A>
105
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
106
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
107
<TD COLSPAN=2><FONT SIZE="+2">
108
<B>Constructor Summary</B></FONT></TD>
109
</TR>
110
<TR BGCOLOR="white" CLASS="TableRowColor">
111
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#MetaCatServlet()">MetaCatServlet</A></B>()</CODE>
112

    
113
<BR>
114
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
115
</TR>
116
</TABLE>
117
&nbsp;
118
<!-- ========== METHOD SUMMARY =========== -->
119

    
120
<A NAME="method_summary"><!-- --></A>
121
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
122
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123
<TD COLSPAN=2><FONT SIZE="+2">
124
<B>Method Summary</B></FONT></TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>&nbsp;void</CODE></FONT></TD>
129
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doGet</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,
130
      javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
131

    
132
<BR>
133
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle "GET" method requests from HTTP clients</TD>
134
</TR>
135
<TR BGCOLOR="white" CLASS="TableRowColor">
136
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137
<CODE>&nbsp;void</CODE></FONT></TD>
138
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doPost</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,
139
       javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
140

    
141
<BR>
142
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle "POST" method requests from HTTP clients</TD>
143
</TR>
144
<TR BGCOLOR="white" CLASS="TableRowColor">
145
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146
<CODE>&nbsp;void</CODE></FONT></TD>
147
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#init(javax.servlet.ServletConfig)">init</A></B>(javax.servlet.ServletConfig&nbsp;config)</CODE>
148

    
149
<BR>
150
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the servlet by creating appropriate database connections</TD>
151
</TR>
152
</TABLE>
153
&nbsp;<A NAME="methods_inherited_from_class_javax.servlet.http.HttpServlet"><!-- --></A>
154
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
155
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
156
<TD><B>Methods inherited from class javax.servlet.http.HttpServlet</B></TD>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD><CODE>doDelete, 
160
doOptions, 
161
doPut, 
162
doTrace, 
163
getLastModified, 
164
service, 
165
service</CODE></TD>
166
</TR>
167
</TABLE>
168
&nbsp;<A NAME="methods_inherited_from_class_javax.servlet.GenericServlet"><!-- --></A>
169
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
170
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
171
<TD><B>Methods inherited from class javax.servlet.GenericServlet</B></TD>
172
</TR>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD><CODE>destroy, 
175
getInitParameter, 
176
getInitParameterNames, 
177
getServletConfig, 
178
getServletContext, 
179
getServletInfo, 
180
log</CODE></TD>
181
</TR>
182
</TABLE>
183
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
184
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
185
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
186
<TD><B>Methods inherited from class java.lang.Object</B></TD>
187
</TR>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD><CODE>clone, 
190
equals, 
191
finalize, 
192
getClass, 
193
hashCode, 
194
notify, 
195
notifyAll, 
196
toString, 
197
wait, 
198
wait, 
199
wait</CODE></TD>
200
</TR>
201
</TABLE>
202
&nbsp;
203
<P>
204

    
205
<!-- ============ FIELD DETAIL =========== -->
206

    
207

    
208
<!-- ========= CONSTRUCTOR DETAIL ======== -->
209

    
210
<A NAME="constructor_detail"><!-- --></A>
211
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
212
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
213
<TD COLSPAN=1><FONT SIZE="+2">
214
<B>Constructor Detail</B></FONT></TD>
215
</TR>
216
</TABLE>
217

    
218
<A NAME="MetaCatServlet()"><!-- --></A><H3>
219
MetaCatServlet</H3>
220
<PRE>
221
public <B>MetaCatServlet</B>()</PRE>
222
<DL>
223
</DL>
224

    
225
<!-- ============ METHOD DETAIL ========== -->
226

    
227
<A NAME="method_detail"><!-- --></A>
228
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
229
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
230
<TD COLSPAN=1><FONT SIZE="+2">
231
<B>Method Detail</B></FONT></TD>
232
</TR>
233
</TABLE>
234

    
235
<A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>
236
init</H3>
237
<PRE>
238
public void <B>init</B>(javax.servlet.ServletConfig&nbsp;config)
239
          throws javax.servlet.ServletException</PRE>
240
<DL>
241
<DD>Initialize the servlet by creating appropriate database connections<DD><DL>
242
<DT><B>Overrides:</B><DD>init in class javax.servlet.GenericServlet</DL>
243
</DD>
244
</DL>
245
<HR>
246

    
247
<A NAME="doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
248
doGet</H3>
249
<PRE>
250
public void <B>doGet</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
251
                  javax.servlet.http.HttpServletResponse&nbsp;response)
252
           throws javax.servlet.ServletException,
253
                  java.io.IOException</PRE>
254
<DL>
255
<DD>Handle "GET" method requests from HTTP clients<DD><DL>
256
<DT><B>Overrides:</B><DD>doGet in class javax.servlet.http.HttpServlet</DL>
257
</DD>
258
</DL>
259
<HR>
260

    
261
<A NAME="doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
262
doPost</H3>
263
<PRE>
264
public void <B>doPost</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
265
                   javax.servlet.http.HttpServletResponse&nbsp;response)
266
            throws javax.servlet.ServletException,
267
                   java.io.IOException</PRE>
268
<DL>
269
<DD>Handle "POST" method requests from HTTP clients<DD><DL>
270
<DT><B>Overrides:</B><DD>doPost in class javax.servlet.http.HttpServlet</DL>
271
</DD>
272
</DL>
273
<!-- ========= END OF CLASS DATA ========= -->
274
<HR>
275

    
276
<!-- ========== START OF NAVBAR ========== -->
277
<A NAME="navbar_bottom"><!-- --></A>
278
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
279
<TR>
280
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
281
<A NAME="navbar_bottom_firstrow"><!-- --></A>
282
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
283
  <TR ALIGN="center" VALIGN="top">
284
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
285
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
286
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
287
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
288
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
289
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
290
  </TR>
291
</TABLE>
292
</TD>
293
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
294
</EM>
295
</TD>
296
</TR>
297

    
298
<TR>
299
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
300
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/GenericXMLValidate.html"><B>PREV CLASS</B></A>&nbsp;
301
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
302
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
303
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
304
&nbsp;<A HREF="MetaCatServlet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
305
</TR>
306
<TR>
307
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
308
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
309
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
310
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
311
</TR>
312
</TABLE>
313
<!-- =========== END OF NAVBAR =========== -->
314

    
315
<HR>
316

    
317
</BODY>
318
</HTML>