Project

General

Profile

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

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 Wed Jun 07 16:35:58 AKDT 2000 -->
6
<TITLE>
7
MetaCat API: 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="class-use/MetaCatServlet.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
28
  </TR>
29
</TABLE>
30
</TD>
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
32
</EM>
33
</TD>
34
</TR>
35

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

    
53
<HR>
54
<!-- ======== START OF CLASS DATA ======== -->
55
<H2>
56
<FONT SIZE="-1">
57
edu.ucsb.nceas.metacat</FONT>
58
<BR>
59
Class  MetaCatServlet</H2>
60
<PRE>
61
<B>edu.ucsb.nceas.metacat.MetaCatServlet</B>
62
</PRE>
63
<HR>
64
<DL>
65
<DT>public class <B>MetaCatServlet</B></DL>
66

    
67
<P>
68
A metadata catalog server implemented as a Java Servlet
69

    
70
 <p>Valid parameters are:<br>
71
 action=query -- query the values of all elements and attributes
72
                     and return a result set of nodes<br>
73
 action=getdocument -- display an XML document in XML or HTML<br>
74
 qformat=xml -- display resultset from query in XML<br>
75
 qformat=html -- display resultset from query in HTML<br>
76
 action=getdocument -- display an XML document in XML or HTML<br>
77
 docid=34 -- display the document with the document ID number 34<br>
78
 action=putdocument -- load an XML document into the database store<br>
79
 doctext -- XML text ofthe document to load into the database<br>
80
 query -- actual query text (to go with 'action=query')<br>
81
 action=validate -- vallidate the xml contained in validatetext<br>
82
 valtext -- XML text to be validated
83
 action=getdatadoc -- retreive a stored datadocument  //DFH
84
 datadoc -- data document name (id)                   //DFH
85
<P>
86
<HR>
87

    
88
<P>
89
<!-- ======== INNER CLASS SUMMARY ======== -->
90

    
91

    
92
<!-- =========== FIELD SUMMARY =========== -->
93

    
94

    
95
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
96

    
97
<A NAME="constructor_summary"><!-- --></A>
98
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
99
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
100
<TD COLSPAN=2><FONT SIZE="+2">
101
<B>Constructor Summary</B></FONT></TD>
102
</TR>
103
<TR BGCOLOR="white" CLASS="TableRowColor">
104
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#MetaCatServlet()">MetaCatServlet</A></B>()</CODE>
105

    
106
<BR>
107
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
108
</TR>
109
</TABLE>
110
&nbsp;
111
<!-- ========== METHOD SUMMARY =========== -->
112

    
113
<A NAME="method_summary"><!-- --></A>
114
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
115
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116
<TD COLSPAN=2><FONT SIZE="+2">
117
<B>Method Summary</B></FONT></TD>
118
</TR>
119
<TR BGCOLOR="white" CLASS="TableRowColor">
120
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121
<CODE>&nbsp;void</CODE></FONT></TD>
122
<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,
123
      javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
124

    
125
<BR>
126
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle "GET" method requests from HTTP clients</TD>
127
</TR>
128
<TR BGCOLOR="white" CLASS="TableRowColor">
129
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130
<CODE>&nbsp;void</CODE></FONT></TD>
131
<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,
132
       javax.servlet.http.HttpServletResponse&nbsp;response)</CODE>
133

    
134
<BR>
135
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle "POST" method requests from HTTP clients</TD>
136
</TR>
137
<TR BGCOLOR="white" CLASS="TableRowColor">
138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139
<CODE>&nbsp;void</CODE></FONT></TD>
140
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html#init(javax.servlet.ServletConfig)">init</A></B>(javax.servlet.ServletConfig&nbsp;config)</CODE>
141

    
142
<BR>
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the servlet by creating appropriate database connections</TD>
144
</TR>
145
</TABLE>
146
&nbsp;
147
<P>
148

    
149
<!-- ============ FIELD DETAIL =========== -->
150

    
151

    
152
<!-- ========= CONSTRUCTOR DETAIL ======== -->
153

    
154
<A NAME="constructor_detail"><!-- --></A>
155
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
156
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157
<TD COLSPAN=1><FONT SIZE="+2">
158
<B>Constructor Detail</B></FONT></TD>
159
</TR>
160
</TABLE>
161

    
162
<A NAME="MetaCatServlet()"><!-- --></A><H3>
163
MetaCatServlet</H3>
164
<PRE>
165
public <B>MetaCatServlet</B>()</PRE>
166
<DL>
167
</DL>
168

    
169
<!-- ============ METHOD DETAIL ========== -->
170

    
171
<A NAME="method_detail"><!-- --></A>
172
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
173
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
174
<TD COLSPAN=1><FONT SIZE="+2">
175
<B>Method Detail</B></FONT></TD>
176
</TR>
177
</TABLE>
178

    
179
<A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>
180
init</H3>
181
<PRE>
182
public void <B>init</B>(javax.servlet.ServletConfig&nbsp;config)
183
          throws javax.servlet.ServletException</PRE>
184
<DL>
185
<DD>Initialize the servlet by creating appropriate database connections</DL>
186
<HR>
187

    
188
<A NAME="doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
189
doGet</H3>
190
<PRE>
191
public void <B>doGet</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
192
                  javax.servlet.http.HttpServletResponse&nbsp;response)
193
           throws javax.servlet.ServletException,
194
                  java.io.IOException</PRE>
195
<DL>
196
<DD>Handle "GET" method requests from HTTP clients</DL>
197
<HR>
198

    
199
<A NAME="doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
200
doPost</H3>
201
<PRE>
202
public void <B>doPost</B>(javax.servlet.http.HttpServletRequest&nbsp;request,
203
                   javax.servlet.http.HttpServletResponse&nbsp;response)
204
            throws javax.servlet.ServletException,
205
                   java.io.IOException</PRE>
206
<DL>
207
<DD>Handle "POST" method requests from HTTP clients</DL>
208
<!-- ========= END OF CLASS DATA ========= -->
209
<HR>
210

    
211
<!-- ========== START OF NAVBAR ========== -->
212
<A NAME="navbar_bottom"><!-- --></A>
213
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
214
<TR>
215
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
216
<A NAME="navbar_bottom_firstrow"><!-- --></A>
217
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
218
  <TR ALIGN="center" VALIGN="top">
219
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
220
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
221
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MetaCatServlet.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
222
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
223
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
224
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
225
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
226
  </TR>
227
</TABLE>
228
</TD>
229
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
230
</EM>
231
</TD>
232
</TR>
233

    
234
<TR>
235
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
236
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/GenericXMLValidate.html"><B>PREV CLASS</B></A>&nbsp;
237
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatUtil.html"><B>NEXT CLASS</B></A></FONT></TD>
238
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
239
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
240
&nbsp;<A HREF="MetaCatServlet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
241
</TR>
242
<TR>
243
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
244
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
245
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
246
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
247
</TR>
248
</TABLE>
249
<!-- =========== END OF NAVBAR =========== -->
250

    
251
<HR>
252
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
253
</BODY>
254
</HTML>