PageRenderTime 189ms CodeModel.GetById 70ms app.highlight 53ms RepoModel.GetById 38ms app.codeStats 20ms

/lib/docs/org/apache/xmlrpc/webserver/Connection.html

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
HTML | 540 lines | 465 code | 53 blank | 22 comment | 0 complexity | e9786a1270ec3ac36dc4cc89e20fda27 MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.6.0_0) on Mon Apr 20 21:45:59 CEST 2009 -->
  6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7<TITLE>
  8Connection (Apache XML-RPC 3.1.2 API)
  9</TITLE>
 10
 11<META NAME="date" CONTENT="2009-04-20">
 12
 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 14
 15<SCRIPT type="text/javascript">
 16function windowTitle()
 17{
 18    if (location.href.indexOf('is-external=true') == -1) {
 19        parent.document.title="Connection (Apache XML-RPC 3.1.2 API)";
 20    }
 21}
 22</SCRIPT>
 23<NOSCRIPT>
 24</NOSCRIPT>
 25
 26</HEAD>
 27
 28<BODY BGCOLOR="white" onload="windowTitle();">
 29<HR>
 30
 31
 32<!-- ========= START OF TOP NAVBAR ======= -->
 33<A NAME="navbar_top"><!-- --></A>
 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 36<TR>
 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 38<A NAME="navbar_top_firstrow"><!-- --></A>
 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 40  <TR ALIGN="center" VALIGN="top">
 41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Connection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 48  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 49  </TR>
 50</TABLE>
 51</TD>
 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 53</EM>
 54</TD>
 55</TR>
 56
 57<TR>
 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 59&nbsp;PREV CLASS&nbsp;
 60&nbsp;<A HREF="../../../../org/apache/xmlrpc/webserver/HttpServletRequestImpl.html" title="class in org.apache.xmlrpc.webserver"><B>NEXT CLASS</B></A></FONT></TD>
 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 62  <A HREF="../../../../index.html?org/apache/xmlrpc/webserver/Connection.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 63&nbsp;<A HREF="Connection.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 64&nbsp;<SCRIPT type="text/javascript">
 65  <!--
 66  if(window==top) {
 67    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 68  }
 69  //-->
 70</SCRIPT>
 71<NOSCRIPT>
 72  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
 73</NOSCRIPT>
 74
 75
 76</FONT></TD>
 77</TR>
 78<TR>
 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 80  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 82DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 83</TR>
 84</TABLE>
 85<A NAME="skip-navbar_top"></A>
 86<!-- ========= END OF TOP NAVBAR ========= -->
 87
 88<HR>
 89<!-- ======== START OF CLASS DATA ======== -->
 90<H2>
 91<FONT SIZE="-1">
 92org.apache.xmlrpc.webserver</FONT>
 93<BR>
 94Class Connection</H2>
 95<PRE>
 96java.lang.Object
 97  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xmlrpc.webserver.Connection</B>
 98</PRE>
 99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html" title="interface in org.apache.xmlrpc.common">ServerStreamConnection</A>, <A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.InterruptableTask.html" title="interface in org.apache.xmlrpc.util">ThreadPool.InterruptableTask</A>, <A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.Task.html" title="interface in org.apache.xmlrpc.util">ThreadPool.Task</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>Connection</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.InterruptableTask.html" title="interface in org.apache.xmlrpc.util">ThreadPool.InterruptableTask</A>, <A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html" title="interface in org.apache.xmlrpc.common">ServerStreamConnection</A></DL>
105</PRE>
106
107<P>
108Handler for a single clients connection. This implementation
109 is able to do HTTP keepalive. In other words, it can serve
110 multiple requests via a single, physical connection.
111<P>
112
113<P>
114<HR>
115
116<P>
117
118<!-- ======== CONSTRUCTOR SUMMARY ======== -->
119
120<A NAME="constructor_summary"><!-- --></A>
121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124<B>Constructor Summary</B></FONT></TH>
125</TR>
126<TR BGCOLOR="white" CLASS="TableRowColor">
127<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#Connection(org.apache.xmlrpc.webserver.WebServer, org.apache.xmlrpc.server.XmlRpcStreamServer, java.net.Socket)">Connection</A></B>(<A HREF="../../../../org/apache/xmlrpc/webserver/WebServer.html" title="class in org.apache.xmlrpc.webserver">WebServer</A>&nbsp;pWebServer,
128           <A HREF="../../../../org/apache/xmlrpc/server/XmlRpcStreamServer.html" title="class in org.apache.xmlrpc.server">XmlRpcStreamServer</A>&nbsp;pServer,
129           java.net.Socket&nbsp;pSocket)</CODE>
130
131<BR>
132&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new webserver connection on the given socket.</TD>
133</TR>
134</TABLE>
135&nbsp;
136<!-- ========== METHOD SUMMARY =========== -->
137
138<A NAME="method_summary"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142<B>Method Summary</B></FONT></TH>
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="../../../../org/apache/xmlrpc/webserver/Connection.html#close()">close</A></B>()</CODE>
148
149<BR>
150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the connection, and frees resources.</TD>
151</TR>
152<TR BGCOLOR="white" CLASS="TableRowColor">
153<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
155<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#newInputStream()">newInputStream</A></B>()</CODE>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the connections input stream.</TD>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>&nbsp;java.io.OutputStream</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#newOutputStream()">newOutputStream</A></B>()</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the connections output stream.</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>&nbsp;void</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#run()">run</A></B>()</CODE>
172
173<BR>
174&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs the task.</TD>
175</TR>
176<TR BGCOLOR="white" CLASS="TableRowColor">
177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178<CODE>&nbsp;void</CODE></FONT></TD>
179<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#setResponseHeader(java.lang.String, java.lang.String)">setResponseHeader</A></B>(java.lang.String&nbsp;pHeader,
180                  java.lang.String&nbsp;pValue)</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a response header value.</TD>
184</TR>
185<TR BGCOLOR="white" CLASS="TableRowColor">
186<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187<CODE>&nbsp;void</CODE></FONT></TD>
188<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#shutdown()">shutdown</A></B>()</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interrupts the task.</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>&nbsp;void</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#writeError(org.apache.xmlrpc.webserver.RequestData, java.lang.Throwable, java.io.ByteArrayOutputStream)">writeError</A></B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
197           java.lang.Throwable&nbsp;pError,
198           java.io.ByteArrayOutputStream&nbsp;pStream)</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes an error response to the output stream.</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205<CODE>&nbsp;void</CODE></FONT></TD>
206<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#writeErrorHeader(org.apache.xmlrpc.webserver.RequestData, java.lang.Throwable, int)">writeErrorHeader</A></B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
207                 java.lang.Throwable&nbsp;pError,
208                 int&nbsp;pContentLength)</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes an error responses headers to the output stream.</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<CODE>&nbsp;void</CODE></FONT></TD>
216<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#writeResponse(org.apache.xmlrpc.webserver.RequestData, java.io.OutputStream)">writeResponse</A></B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
217              java.io.OutputStream&nbsp;pBuffer)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the response header and the response to the
221 output stream.</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;void</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/webserver/Connection.html#writeResponseHeader(org.apache.xmlrpc.webserver.RequestData, int)">writeResponseHeader</A></B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
227                    int&nbsp;pContentLength)</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the response header to the output stream.</TD>
231</TR>
232</TABLE>
233&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
234<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
236<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
240</TR>
241</TABLE>
242&nbsp;
243<P>
244
245<!-- ========= CONSTRUCTOR DETAIL ======== -->
246
247<A NAME="constructor_detail"><!-- --></A>
248<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
251<B>Constructor Detail</B></FONT></TH>
252</TR>
253</TABLE>
254
255<A NAME="Connection(org.apache.xmlrpc.webserver.WebServer, org.apache.xmlrpc.server.XmlRpcStreamServer, java.net.Socket)"><!-- --></A><H3>
256Connection</H3>
257<PRE>
258public <B>Connection</B>(<A HREF="../../../../org/apache/xmlrpc/webserver/WebServer.html" title="class in org.apache.xmlrpc.webserver">WebServer</A>&nbsp;pWebServer,
259                  <A HREF="../../../../org/apache/xmlrpc/server/XmlRpcStreamServer.html" title="class in org.apache.xmlrpc.server">XmlRpcStreamServer</A>&nbsp;pServer,
260                  java.net.Socket&nbsp;pSocket)
261           throws java.io.IOException</PRE>
262<DL>
263<DD>Creates a new webserver connection on the given socket.
264<P>
265<DL>
266<DT><B>Parameters:</B><DD><CODE>pWebServer</CODE> - The webserver maintaining this connection.<DD><CODE>pServer</CODE> - The server being used to execute requests.<DD><CODE>pSocket</CODE> - The server socket to handle; the <code>Connection</code>
267 is responsible for closing this socket.
268<DT><B>Throws:</B>
269<DD><CODE>java.io.IOException</CODE></DL>
270</DL>
271
272<!-- ============ METHOD DETAIL ========== -->
273
274<A NAME="method_detail"><!-- --></A>
275<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
276<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
277<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
278<B>Method Detail</B></FONT></TH>
279</TR>
280</TABLE>
281
282<A NAME="run()"><!-- --></A><H3>
283run</H3>
284<PRE>
285public void <B>run</B>()</PRE>
286<DL>
287<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.Task.html#run()">ThreadPool.Task</A></CODE></B></DD>
288<DD>Performs the task.
289<P>
290<DD><DL>
291<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.Task.html#run()">run</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.Task.html" title="interface in org.apache.xmlrpc.util">ThreadPool.Task</A></CODE></DL>
292</DD>
293<DD><DL>
294</DL>
295</DD>
296</DL>
297<HR>
298
299<A NAME="writeResponse(org.apache.xmlrpc.webserver.RequestData, java.io.OutputStream)"><!-- --></A><H3>
300writeResponse</H3>
301<PRE>
302public void <B>writeResponse</B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
303                          java.io.OutputStream&nbsp;pBuffer)
304                   throws java.io.IOException</PRE>
305<DL>
306<DD>Writes the response header and the response to the
307 output stream.
308<P>
309<DD><DL>
310</DL>
311</DD>
312<DD><DL>
313<DT><B>Parameters:</B><DD><CODE>pData</CODE> - The request data.<DD><CODE>pBuffer</CODE> - The <CODE>ByteArrayOutputStream</CODE> holding the response.
314<DT><B>Throws:</B>
315<DD><CODE>java.io.IOException</CODE> - Writing the response failed.</DL>
316</DD>
317</DL>
318<HR>
319
320<A NAME="writeResponseHeader(org.apache.xmlrpc.webserver.RequestData, int)"><!-- --></A><H3>
321writeResponseHeader</H3>
322<PRE>
323public void <B>writeResponseHeader</B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
324                                int&nbsp;pContentLength)
325                         throws java.io.IOException</PRE>
326<DL>
327<DD>Writes the response header to the output stream.         *
328<P>
329<DD><DL>
330</DL>
331</DD>
332<DD><DL>
333<DT><B>Parameters:</B><DD><CODE>pData</CODE> - The request data<DD><CODE>pContentLength</CODE> - The content length, if known, or -1.
334<DT><B>Throws:</B>
335<DD><CODE>java.io.IOException</CODE> - Writing the response failed.</DL>
336</DD>
337</DL>
338<HR>
339
340<A NAME="writeError(org.apache.xmlrpc.webserver.RequestData, java.lang.Throwable, java.io.ByteArrayOutputStream)"><!-- --></A><H3>
341writeError</H3>
342<PRE>
343public void <B>writeError</B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
344                       java.lang.Throwable&nbsp;pError,
345                       java.io.ByteArrayOutputStream&nbsp;pStream)
346                throws java.io.IOException</PRE>
347<DL>
348<DD>Writes an error response to the output stream.
349<P>
350<DD><DL>
351</DL>
352</DD>
353<DD><DL>
354<DT><B>Parameters:</B><DD><CODE>pData</CODE> - The request data.<DD><CODE>pError</CODE> - The error being reported.<DD><CODE>pStream</CODE> - The <CODE>ByteArrayOutputStream</CODE> with the error response.
355<DT><B>Throws:</B>
356<DD><CODE>java.io.IOException</CODE> - Writing the response failed.</DL>
357</DD>
358</DL>
359<HR>
360
361<A NAME="writeErrorHeader(org.apache.xmlrpc.webserver.RequestData, java.lang.Throwable, int)"><!-- --></A><H3>
362writeErrorHeader</H3>
363<PRE>
364public void <B>writeErrorHeader</B>(<A HREF="../../../../org/apache/xmlrpc/webserver/RequestData.html" title="class in org.apache.xmlrpc.webserver">RequestData</A>&nbsp;pData,
365                             java.lang.Throwable&nbsp;pError,
366                             int&nbsp;pContentLength)
367                      throws java.io.IOException</PRE>
368<DL>
369<DD>Writes an error responses headers to the output stream.
370<P>
371<DD><DL>
372</DL>
373</DD>
374<DD><DL>
375<DT><B>Parameters:</B><DD><CODE>pData</CODE> - The request data.<DD><CODE>pError</CODE> - The error being reported.<DD><CODE>pContentLength</CODE> - The response length, if known, or -1.
376<DT><B>Throws:</B>
377<DD><CODE>java.io.IOException</CODE> - Writing the response failed.</DL>
378</DD>
379</DL>
380<HR>
381
382<A NAME="setResponseHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
383setResponseHeader</H3>
384<PRE>
385public void <B>setResponseHeader</B>(java.lang.String&nbsp;pHeader,
386                              java.lang.String&nbsp;pValue)</PRE>
387<DL>
388<DD>Sets a response header value.
389<P>
390<DD><DL>
391</DL>
392</DD>
393<DD><DL>
394</DL>
395</DD>
396</DL>
397<HR>
398
399<A NAME="newOutputStream()"><!-- --></A><H3>
400newOutputStream</H3>
401<PRE>
402public java.io.OutputStream <B>newOutputStream</B>()
403                                     throws java.io.IOException</PRE>
404<DL>
405<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#newOutputStream()">ServerStreamConnection</A></CODE></B></DD>
406<DD>Returns the connections output stream.
407<P>
408<DD><DL>
409<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#newOutputStream()">newOutputStream</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html" title="interface in org.apache.xmlrpc.common">ServerStreamConnection</A></CODE></DL>
410</DD>
411<DD><DL>
412
413<DT><B>Throws:</B>
414<DD><CODE>java.io.IOException</CODE></DL>
415</DD>
416</DL>
417<HR>
418
419<A NAME="newInputStream()"><!-- --></A><H3>
420newInputStream</H3>
421<PRE>
422public java.io.InputStream <B>newInputStream</B>()
423                                   throws java.io.IOException</PRE>
424<DL>
425<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#newInputStream()">ServerStreamConnection</A></CODE></B></DD>
426<DD>Returns the connections input stream.
427<P>
428<DD><DL>
429<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#newInputStream()">newInputStream</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html" title="interface in org.apache.xmlrpc.common">ServerStreamConnection</A></CODE></DL>
430</DD>
431<DD><DL>
432
433<DT><B>Throws:</B>
434<DD><CODE>java.io.IOException</CODE></DL>
435</DD>
436</DL>
437<HR>
438
439<A NAME="close()"><!-- --></A><H3>
440close</H3>
441<PRE>
442public void <B>close</B>()
443           throws java.io.IOException</PRE>
444<DL>
445<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#close()">ServerStreamConnection</A></CODE></B></DD>
446<DD>Closes the connection, and frees resources.
447<P>
448<DD><DL>
449<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xmlrpc/common/ServerStreamConnection.html" title="interface in org.apache.xmlrpc.common">ServerStreamConnection</A></CODE></DL>
450</DD>
451<DD><DL>
452
453<DT><B>Throws:</B>
454<DD><CODE>java.io.IOException</CODE></DL>
455</DD>
456</DL>
457<HR>
458
459<A NAME="shutdown()"><!-- --></A><H3>
460shutdown</H3>
461<PRE>
462public void <B>shutdown</B>()
463              throws java.lang.Throwable</PRE>
464<DL>
465<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.InterruptableTask.html#shutdown()">ThreadPool.InterruptableTask</A></CODE></B></DD>
466<DD>Interrupts the task.
467<P>
468<DD><DL>
469<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.InterruptableTask.html#shutdown()">shutdown</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xmlrpc/util/ThreadPool.InterruptableTask.html" title="interface in org.apache.xmlrpc.util">ThreadPool.InterruptableTask</A></CODE></DL>
470</DD>
471<DD><DL>
472
473<DT><B>Throws:</B>
474<DD><CODE>java.lang.Throwable</CODE> - Shutting down the task failed.</DL>
475</DD>
476</DL>
477<!-- ========= END OF CLASS DATA ========= -->
478<HR>
479
480
481<!-- ======= START OF BOTTOM NAVBAR ====== -->
482<A NAME="navbar_bottom"><!-- --></A>
483<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
484<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
485<TR>
486<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
487<A NAME="navbar_bottom_firstrow"><!-- --></A>
488<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
489  <TR ALIGN="center" VALIGN="top">
490  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
491  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
492  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Connection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
496  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
497  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
498  </TR>
499</TABLE>
500</TD>
501<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
502</EM>
503</TD>
504</TR>
505
506<TR>
507<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
508&nbsp;PREV CLASS&nbsp;
509&nbsp;<A HREF="../../../../org/apache/xmlrpc/webserver/HttpServletRequestImpl.html" title="class in org.apache.xmlrpc.webserver"><B>NEXT CLASS</B></A></FONT></TD>
510<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
511  <A HREF="../../../../index.html?org/apache/xmlrpc/webserver/Connection.html" target="_top"><B>FRAMES</B></A>  &nbsp;
512&nbsp;<A HREF="Connection.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
513&nbsp;<SCRIPT type="text/javascript">
514  <!--
515  if(window==top) {
516    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
517  }
518  //-->
519</SCRIPT>
520<NOSCRIPT>
521  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
522</NOSCRIPT>
523
524
525</FONT></TD>
526</TR>
527<TR>
528<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
529  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
530<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
531DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
532</TR>
533</TABLE>
534<A NAME="skip-navbar_bottom"></A>
535<!-- ======== END OF BOTTOM NAVBAR ======= -->
536
537<HR>
538Copyright &#169; 2001-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
539</BODY>
540</HTML>