PageRenderTime 729ms CodeModel.GetById 39ms RepoModel.GetById 5ms app.codeStats 0ms

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