Debian Codegraph @

docs/apiDocs/javax/xml/soap/SOAPPart.html

raw
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.4.2_08) on Sat Apr 22 18:57:16 PDT 2006 -->
6 <TITLE>
7 SOAPPart (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="javax.xml.soap.SOAPPart class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="SOAPPart (Axis API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SOAPPart.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../javax/xml/soap/SOAPMessage.html" title="class in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;NEXT CLASS</FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="SOAPPart.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 javax.xml.soap</FONT>
86 <BR>
87 Class SOAPPart</H2>
88 <PRE>
89 java.lang.Object
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.xml.soap.SOAPPart</B>
91 </PRE>
92 <DL>
93 <DT><B>All Implemented Interfaces:</B> <DD>org.w3c.dom.Document, org.w3c.dom.Node</DD>
94 </DL>
95 <DL>
96 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/apache/axis/SOAPPart.html" title="class in org.apache.axis">SOAPPart</A></DD>
97 </DL>
98 <HR>
99 <DL>
100 <DT>public abstract class <B>SOAPPart</B><DT>extends java.lang.Object<DT>implements org.w3c.dom.Document</DL>
101
102 <P>
103 <P>The container for the SOAP-specific portion of a <CODE>
104 SOAPMessage</CODE> object. All messages are required to have a
105 SOAP part, so when a <CODE>SOAPMessage</CODE> object is
106 created, it will automatically have a <CODE>SOAPPart</CODE>
107 object.</P>
108
109 <P>A <CODE>SOAPPart</CODE> object is a MIME part and has the
110 MIME headers Content-Id, Content-Location, and Content-Type.
111 Because the value of Content-Type must be "text/xml", a <CODE>
112 SOAPPart</CODE> object automatically has a MIME header of
113 Content-Type with its value set to "text/xml". The value must
114 be "text/xml" because content in the SOAP part of a message
115 must be in XML format. Content that is not of type "text/xml"
116 must be in an <CODE>AttachmentPart</CODE> object rather than in
117 the <CODE>SOAPPart</CODE> object.</P>
118
119 <P>When a message is sent, its SOAP part must have the MIME
120 header Content-Type set to "text/xml". Or, from the other
121 perspective, the SOAP part of any message that is received must
122 have the MIME header Content-Type with a value of
123 "text/xml".</P>
124
125 <P>A client can access the <CODE>SOAPPart</CODE> object of a
126 <CODE>SOAPMessage</CODE> object by calling the method <CODE>
127 SOAPMessage.getSOAPPart</CODE>. The following line of code, in
128 which <CODE>message</CODE> is a <CODE>SOAPMessage</CODE>
129 object, retrieves the SOAP part of a message.</P>
130 <PRE>
131 SOAPPart soapPart = message.getSOAPPart();
132 </PRE>
133
134 <P>A <CODE>SOAPPart</CODE> object contains a <CODE>
135 SOAPEnvelope</CODE> object, which in turn contains a <CODE>
136 SOAPBody</CODE> object and a <CODE>SOAPHeader</CODE> object.
137 The <CODE>SOAPPart</CODE> method <CODE>getEnvelope</CODE> can
138 be used to retrieve the <CODE>SOAPEnvelope</CODE> object.</P>
139 <P>
140
141 <P>
142 <HR>
143
144 <P>
145 <!-- ======== NESTED CLASS SUMMARY ======== -->
146
147
148 <!-- =========== FIELD SUMMARY =========== -->
149
150 <A NAME="field_summary"><!-- --></A>
151 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153 <TD COLSPAN=2><FONT SIZE="+2">
154 <B>Field Summary</B></FONT></TD>
155 </TR>
156 </TABLE>
157 &nbsp;<A NAME="fields_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
158 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
159 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
160 <TD><B>Fields inherited from interface org.w3c.dom.Node</B></TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD><CODE>ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE</CODE></TD>
164 </TR>
165 </TABLE>
166 &nbsp;
167 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
168
169 <A NAME="constructor_summary"><!-- --></A>
170 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
172 <TD COLSPAN=2><FONT SIZE="+2">
173 <B>Constructor Summary</B></FONT></TD>
174 </TR>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#SOAPPart()">SOAPPart</A></B>()</CODE>
177
178 <BR>
179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180 </TR>
181 </TABLE>
182 &nbsp;
183 <!-- ========== METHOD SUMMARY =========== -->
184
185 <A NAME="method_summary"><!-- --></A>
186 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
187 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
188 <TD COLSPAN=2><FONT SIZE="+2">
189 <B>Method Summary</B></FONT></TD>
190 </TR>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193 <CODE>abstract &nbsp;void</CODE></FONT></TD>
194 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#addMimeHeader(java.lang.String, java.lang.String)">addMimeHeader</A></B>(java.lang.String&nbsp;name,
195 java.lang.String&nbsp;value)</CODE>
196
197 <BR>
198 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <CODE>MimeHeader</CODE> object with the specified
199 name and value and adds it to this <CODE>SOAPPart</CODE>
200 object.</TD>
201 </TR>
202 <TR BGCOLOR="white" CLASS="TableRowColor">
203 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204 <CODE>abstract &nbsp;java.util.Iterator</CODE></FONT></TD>
205 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getAllMimeHeaders()">getAllMimeHeaders</A></B>()</CODE>
206
207 <BR>
208 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves all the headers for this <CODE>SOAPPart</CODE>
209 object as an iterator over the <CODE>MimeHeader</CODE>
210 objects.</TD>
211 </TR>
212 <TR BGCOLOR="white" CLASS="TableRowColor">
213 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214 <CODE>abstract &nbsp;javax.xml.transform.Source</CODE></FONT></TD>
215 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getContent()">getContent</A></B>()</CODE>
216
217 <BR>
218 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the content of the SOAPEnvelope as a JAXP <CODE>
219 Source</CODE> object.</TD>
220 </TR>
221 <TR BGCOLOR="white" CLASS="TableRowColor">
222 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
224 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getContentId()">getContentId</A></B>()</CODE>
225
226 <BR>
227 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the value of the MIME header whose name is
228 "Content-Id".</TD>
229 </TR>
230 <TR BGCOLOR="white" CLASS="TableRowColor">
231 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
233 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getContentLocation()">getContentLocation</A></B>()</CODE>
234
235 <BR>
236 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the value of the MIME header whose name is
237 "Content-Location".</TD>
238 </TR>
239 <TR BGCOLOR="white" CLASS="TableRowColor">
240 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241 <CODE>abstract &nbsp;<A HREF="../../../javax/xml/soap/SOAPEnvelope.html" title="interface in javax.xml.soap">SOAPEnvelope</A></CODE></FONT></TD>
242 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getEnvelope()">getEnvelope</A></B>()</CODE>
243
244 <BR>
245 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the <CODE>SOAPEnvelope</CODE> object associated with
246 this <CODE>SOAPPart</CODE> object.</TD>
247 </TR>
248 <TR BGCOLOR="white" CLASS="TableRowColor">
249 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250 <CODE>abstract &nbsp;java.util.Iterator</CODE></FONT></TD>
251 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getMatchingMimeHeaders(java.lang.String[])">getMatchingMimeHeaders</A></B>(java.lang.String[]&nbsp;names)</CODE>
252
253 <BR>
254 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves all <CODE>MimeHeader</CODE> objects that match
255 a name in the given array.</TD>
256 </TR>
257 <TR BGCOLOR="white" CLASS="TableRowColor">
258 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259 <CODE>abstract &nbsp;java.lang.String[]</CODE></FONT></TD>
260 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getMimeHeader(java.lang.String)">getMimeHeader</A></B>(java.lang.String&nbsp;name)</CODE>
261
262 <BR>
263 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets all the values of the <CODE>MimeHeader</CODE> object
264 in this <CODE>SOAPPart</CODE> object that is identified by
265 the given <CODE>String</CODE>.</TD>
266 </TR>
267 <TR BGCOLOR="white" CLASS="TableRowColor">
268 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269 <CODE>abstract &nbsp;java.util.Iterator</CODE></FONT></TD>
270 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#getNonMatchingMimeHeaders(java.lang.String[])">getNonMatchingMimeHeaders</A></B>(java.lang.String[]&nbsp;names)</CODE>
271
272 <BR>
273 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves all <CODE>MimeHeader</CODE> objects whose name
274 does not match a name in the given array.</TD>
275 </TR>
276 <TR BGCOLOR="white" CLASS="TableRowColor">
277 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278 <CODE>abstract &nbsp;void</CODE></FONT></TD>
279 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#removeAllMimeHeaders()">removeAllMimeHeaders</A></B>()</CODE>
280
281 <BR>
282 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all the <CODE>MimeHeader</CODE> objects for this
283 <CODE>SOAPEnvelope</CODE> object.</TD>
284 </TR>
285 <TR BGCOLOR="white" CLASS="TableRowColor">
286 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287 <CODE>abstract &nbsp;void</CODE></FONT></TD>
288 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#removeMimeHeader(java.lang.String)">removeMimeHeader</A></B>(java.lang.String&nbsp;header)</CODE>
289
290 <BR>
291 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all MIME headers that match the given name.</TD>
292 </TR>
293 <TR BGCOLOR="white" CLASS="TableRowColor">
294 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
295 <CODE>abstract &nbsp;void</CODE></FONT></TD>
296 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#setContent(javax.xml.transform.Source)">setContent</A></B>(javax.xml.transform.Source&nbsp;source)</CODE>
297
298 <BR>
299 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the content of the <CODE>SOAPEnvelope</CODE> object
300 with the data from the given <CODE>Source</CODE> object.</TD>
301 </TR>
302 <TR BGCOLOR="white" CLASS="TableRowColor">
303 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304 <CODE>&nbsp;void</CODE></FONT></TD>
305 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#setContentId(java.lang.String)">setContentId</A></B>(java.lang.String&nbsp;contentId)</CODE>
306
307 <BR>
308 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the MIME header named "Content-Id" to
309 the given <CODE>String</CODE>.</TD>
310 </TR>
311 <TR BGCOLOR="white" CLASS="TableRowColor">
312 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313 <CODE>&nbsp;void</CODE></FONT></TD>
314 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#setContentLocation(java.lang.String)">setContentLocation</A></B>(java.lang.String&nbsp;contentLocation)</CODE>
315
316 <BR>
317 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the MIME header "Content-Location" to
318 the given <CODE>String</CODE>.</TD>
319 </TR>
320 <TR BGCOLOR="white" CLASS="TableRowColor">
321 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322 <CODE>abstract &nbsp;void</CODE></FONT></TD>
323 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPPart.html#setMimeHeader(java.lang.String, java.lang.String)">setMimeHeader</A></B>(java.lang.String&nbsp;name,
324 java.lang.String&nbsp;value)</CODE>
325
326 <BR>
327 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the first header entry that matches the given
328 header name so that its value is the given value, adding a
329 new header with the given name and value if no existing
330 header is a match.</TD>
331 </TR>
332 </TABLE>
333 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
334 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
335 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
336 <TD><B>Methods inherited from class java.lang.Object</B></TD>
337 </TR>
338 <TR BGCOLOR="white" CLASS="TableRowColor">
339 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
340 </TR>
341 </TABLE>
342 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Document"><!-- --></A>
343 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
344 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
345 <TD><B>Methods inherited from interface org.w3c.dom.Document</B></TD>
346 </TR>
347 <TR BGCOLOR="white" CLASS="TableRowColor">
348 <TD><CODE>createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode</CODE></TD>
349 </TR>
350 </TABLE>
351 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
352 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
353 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
354 <TD><B>Methods inherited from interface org.w3c.dom.Node</B></TD>
355 </TR>
356 <TR BGCOLOR="white" CLASS="TableRowColor">
357 <TD><CODE>appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix</CODE></TD>
358 </TR>
359 </TABLE>
360 &nbsp;
361 <P>
362
363 <!-- ============ FIELD DETAIL =========== -->
364
365
366 <!-- ========= CONSTRUCTOR DETAIL ======== -->
367
368 <A NAME="constructor_detail"><!-- --></A>
369 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
370 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
371 <TD COLSPAN=1><FONT SIZE="+2">
372 <B>Constructor Detail</B></FONT></TD>
373 </TR>
374 </TABLE>
375
376 <A NAME="SOAPPart()"><!-- --></A><H3>
377 SOAPPart</H3>
378 <PRE>
379 public <B>SOAPPart</B>()</PRE>
380 <DL>
381 </DL>
382
383 <!-- ============ METHOD DETAIL ========== -->
384
385 <A NAME="method_detail"><!-- --></A>
386 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
387 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
388 <TD COLSPAN=1><FONT SIZE="+2">
389 <B>Method Detail</B></FONT></TD>
390 </TR>
391 </TABLE>
392
393 <A NAME="getEnvelope()"><!-- --></A><H3>
394 getEnvelope</H3>
395 <PRE>
396 public abstract <A HREF="../../../javax/xml/soap/SOAPEnvelope.html" title="interface in javax.xml.soap">SOAPEnvelope</A> <B>getEnvelope</B>()
397 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
398 <DL>
399 <DD>Gets the <CODE>SOAPEnvelope</CODE> object associated with
400 this <CODE>SOAPPart</CODE> object. Once the SOAP envelope is
401 obtained, it can be used to get its contents.
402 <P>
403 <DD><DL>
404 </DL>
405 </DD>
406 <DD><DL>
407
408 <DT><B>Returns:</B><DD>the <CODE>SOAPEnvelope</CODE> object for this <CODE>
409 SOAPPart</CODE> object
410 <DT><B>Throws:</B>
411 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a SOAP error</DL>
412 </DD>
413 </DL>
414 <HR>
415
416 <A NAME="getContentId()"><!-- --></A><H3>
417 getContentId</H3>
418 <PRE>
419 public java.lang.String <B>getContentId</B>()</PRE>
420 <DL>
421 <DD>Retrieves the value of the MIME header whose name is
422 "Content-Id".
423 <P>
424 <DD><DL>
425 </DL>
426 </DD>
427 <DD><DL>
428
429 <DT><B>Returns:</B><DD>a <CODE>String</CODE> giving the value of the MIME
430 header named "Content-Id"<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#setContentId(java.lang.String)"><CODE>setContentId(java.lang.String)</CODE></A></DL>
431 </DD>
432 </DL>
433 <HR>
434
435 <A NAME="getContentLocation()"><!-- --></A><H3>
436 getContentLocation</H3>
437 <PRE>
438 public java.lang.String <B>getContentLocation</B>()</PRE>
439 <DL>
440 <DD>Retrieves the value of the MIME header whose name is
441 "Content-Location".
442 <P>
443 <DD><DL>
444 </DL>
445 </DD>
446 <DD><DL>
447
448 <DT><B>Returns:</B><DD>a <CODE>String</CODE> giving the value of the MIME
449 header whose name is "Content-Location"<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#setContentLocation(java.lang.String)"><CODE>setContentLocation(java.lang.String)</CODE></A></DL>
450 </DD>
451 </DL>
452 <HR>
453
454 <A NAME="setContentId(java.lang.String)"><!-- --></A><H3>
455 setContentId</H3>
456 <PRE>
457 public void <B>setContentId</B>(java.lang.String&nbsp;contentId)</PRE>
458 <DL>
459 <DD>Sets the value of the MIME header named "Content-Id" to
460 the given <CODE>String</CODE>.
461 <P>
462 <DD><DL>
463 </DL>
464 </DD>
465 <DD><DL>
466 <DT><B>Parameters:</B><DD><CODE>contentId</CODE> - a <CODE>String</CODE> giving
467 the value of the MIME header "Content-Id"
468 <DT><B>Throws:</B>
469 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if
470 there is a problem in setting the content id<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#getContentId()"><CODE>getContentId()</CODE></A></DL>
471 </DD>
472 </DL>
473 <HR>
474
475 <A NAME="setContentLocation(java.lang.String)"><!-- --></A><H3>
476 setContentLocation</H3>
477 <PRE>
478 public void <B>setContentLocation</B>(java.lang.String&nbsp;contentLocation)</PRE>
479 <DL>
480 <DD>Sets the value of the MIME header "Content-Location" to
481 the given <CODE>String</CODE>.
482 <P>
483 <DD><DL>
484 </DL>
485 </DD>
486 <DD><DL>
487 <DT><B>Parameters:</B><DD><CODE>contentLocation</CODE> - a <CODE>String</CODE>
488 giving the value of the MIME header
489 "Content-Location"
490 <DT><B>Throws:</B>
491 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if
492 there is a problem in setting the content location.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#getContentLocation()"><CODE>getContentLocation()</CODE></A></DL>
493 </DD>
494 </DL>
495 <HR>
496
497 <A NAME="removeMimeHeader(java.lang.String)"><!-- --></A><H3>
498 removeMimeHeader</H3>
499 <PRE>
500 public abstract void <B>removeMimeHeader</B>(java.lang.String&nbsp;header)</PRE>
501 <DL>
502 <DD>Removes all MIME headers that match the given name.
503 <P>
504 <DD><DL>
505 </DL>
506 </DD>
507 <DD><DL>
508 <DT><B>Parameters:</B><DD><CODE>header</CODE> - a <CODE>String</CODE> giving
509 the name of the MIME header(s) to be removed</DL>
510 </DD>
511 </DL>
512 <HR>
513
514 <A NAME="removeAllMimeHeaders()"><!-- --></A><H3>
515 removeAllMimeHeaders</H3>
516 <PRE>
517 public abstract void <B>removeAllMimeHeaders</B>()</PRE>
518 <DL>
519 <DD>Removes all the <CODE>MimeHeader</CODE> objects for this
520 <CODE>SOAPEnvelope</CODE> object.
521 <P>
522 <DD><DL>
523 </DL>
524 </DD>
525 <DD><DL>
526 </DL>
527 </DD>
528 </DL>
529 <HR>
530
531 <A NAME="getMimeHeader(java.lang.String)"><!-- --></A><H3>
532 getMimeHeader</H3>
533 <PRE>
534 public abstract java.lang.String[] <B>getMimeHeader</B>(java.lang.String&nbsp;name)</PRE>
535 <DL>
536 <DD>Gets all the values of the <CODE>MimeHeader</CODE> object
537 in this <CODE>SOAPPart</CODE> object that is identified by
538 the given <CODE>String</CODE>.
539 <P>
540 <DD><DL>
541 </DL>
542 </DD>
543 <DD><DL>
544 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header; example:
545 "Content-Type"
546 <DT><B>Returns:</B><DD>a <CODE>String</CODE> array giving all the values for
547 the specified header<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#setMimeHeader(java.lang.String, java.lang.String)"><CODE>setMimeHeader(java.lang.String, java.lang.String)</CODE></A></DL>
548 </DD>
549 </DL>
550 <HR>
551
552 <A NAME="setMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
553 setMimeHeader</H3>
554 <PRE>
555 public abstract void <B>setMimeHeader</B>(java.lang.String&nbsp;name,
556 java.lang.String&nbsp;value)</PRE>
557 <DL>
558 <DD>Changes the first header entry that matches the given
559 header name so that its value is the given value, adding a
560 new header with the given name and value if no existing
561 header is a match. If there is a match, this method clears
562 all existing values for the first header that matches and
563 sets the given value instead. If more than one header has
564 the given name, this method removes all of the matching
565 headers after the first one.
566
567 <P>Note that RFC822 headers can contain only US-ASCII
568 characters.</P>
569 <P>
570 <DD><DL>
571 </DL>
572 </DD>
573 <DD><DL>
574 <DT><B>Parameters:</B><DD><CODE>name</CODE> - a <CODE>String</CODE> giving the
575 header name for which to search<DD><CODE>value</CODE> - a <CODE>String</CODE> giving the
576 value to be set. This value will be substituted for the
577 current value(s) of the first header that is a match if
578 there is one. If there is no match, this value will be
579 the value for a new <CODE>MimeHeader</CODE> object.
580 <DT><B>Throws:</B>
581 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if
582 there was a problem with the specified mime header name
583 or value
584 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there was a problem with the specified mime header name or value<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#getMimeHeader(java.lang.String)"><CODE>getMimeHeader(java.lang.String)</CODE></A></DL>
585 </DD>
586 </DL>
587 <HR>
588
589 <A NAME="addMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
590 addMimeHeader</H3>
591 <PRE>
592 public abstract void <B>addMimeHeader</B>(java.lang.String&nbsp;name,
593 java.lang.String&nbsp;value)</PRE>
594 <DL>
595 <DD>Creates a <CODE>MimeHeader</CODE> object with the specified
596 name and value and adds it to this <CODE>SOAPPart</CODE>
597 object. If a <CODE>MimeHeader</CODE> with the specified
598 name already exists, this method adds the specified value
599 to the already existing value(s).
600
601 <P>Note that RFC822 headers can contain only US-ASCII
602 characters.</P>
603 <P>
604 <DD><DL>
605 </DL>
606 </DD>
607 <DD><DL>
608 <DT><B>Parameters:</B><DD><CODE>name</CODE> - a <CODE>String</CODE> giving the
609 header name<DD><CODE>value</CODE> - a <CODE>String</CODE> giving the
610 value to be set or added
611 <DT><B>Throws:</B>
612 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if
613 there was a problem with the specified mime header name
614 or value</DL>
615 </DD>
616 </DL>
617 <HR>
618
619 <A NAME="getAllMimeHeaders()"><!-- --></A><H3>
620 getAllMimeHeaders</H3>
621 <PRE>
622 public abstract java.util.Iterator <B>getAllMimeHeaders</B>()</PRE>
623 <DL>
624 <DD>Retrieves all the headers for this <CODE>SOAPPart</CODE>
625 object as an iterator over the <CODE>MimeHeader</CODE>
626 objects.
627 <P>
628 <DD><DL>
629 </DL>
630 </DD>
631 <DD><DL>
632
633 <DT><B>Returns:</B><DD>an <CODE>Iterator</CODE> object with all of the Mime
634 headers for this <CODE>SOAPPart</CODE> object</DL>
635 </DD>
636 </DL>
637 <HR>
638
639 <A NAME="getMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3>
640 getMatchingMimeHeaders</H3>
641 <PRE>
642 public abstract java.util.Iterator <B>getMatchingMimeHeaders</B>(java.lang.String[]&nbsp;names)</PRE>
643 <DL>
644 <DD>Retrieves all <CODE>MimeHeader</CODE> objects that match
645 a name in the given array.
646 <P>
647 <DD><DL>
648 </DL>
649 </DD>
650 <DD><DL>
651 <DT><B>Parameters:</B><DD><CODE>names</CODE> - a <CODE>String</CODE> array with
652 the name(s) of the MIME headers to be returned
653 <DT><B>Returns:</B><DD>all of the MIME headers that match one of the names
654 in the given array, returned as an <CODE>Iterator</CODE>
655 object</DL>
656 </DD>
657 </DL>
658 <HR>
659
660 <A NAME="getNonMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3>
661 getNonMatchingMimeHeaders</H3>
662 <PRE>
663 public abstract java.util.Iterator <B>getNonMatchingMimeHeaders</B>(java.lang.String[]&nbsp;names)</PRE>
664 <DL>
665 <DD>Retrieves all <CODE>MimeHeader</CODE> objects whose name
666 does not match a name in the given array.
667 <P>
668 <DD><DL>
669 </DL>
670 </DD>
671 <DD><DL>
672 <DT><B>Parameters:</B><DD><CODE>names</CODE> - a <CODE>String</CODE> array with
673 the name(s) of the MIME headers not to be returned
674 <DT><B>Returns:</B><DD>all of the MIME headers in this <CODE>SOAPPart</CODE>
675 object except those that match one of the names in the
676 given array. The nonmatching MIME headers are returned as
677 an <CODE>Iterator</CODE> object.</DL>
678 </DD>
679 </DL>
680 <HR>
681
682 <A NAME="setContent(javax.xml.transform.Source)"><!-- --></A><H3>
683 setContent</H3>
684 <PRE>
685 public abstract void <B>setContent</B>(javax.xml.transform.Source&nbsp;source)
686 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
687 <DL>
688 <DD>Sets the content of the <CODE>SOAPEnvelope</CODE> object
689 with the data from the given <CODE>Source</CODE> object.
690 <P>
691 <DD><DL>
692 </DL>
693 </DD>
694 <DD><DL>
695 <DT><B>Parameters:</B><DD><CODE>source</CODE> - javax.xml.transform.Source</CODE> object with the data to
696 be set
697 <DT><B>Throws:</B>
698 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a problem in
699 setting the source<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#getContent()"><CODE>getContent()</CODE></A></DL>
700 </DD>
701 </DL>
702 <HR>
703
704 <A NAME="getContent()"><!-- --></A><H3>
705 getContent</H3>
706 <PRE>
707 public abstract javax.xml.transform.Source <B>getContent</B>()
708 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
709 <DL>
710 <DD>Returns the content of the SOAPEnvelope as a JAXP <CODE>
711 Source</CODE> object.
712 <P>
713 <DD><DL>
714 </DL>
715 </DD>
716 <DD><DL>
717
718 <DT><B>Returns:</B><DD>the content as a <CODE>
719 javax.xml.transform.Source</CODE> object
720 <DT><B>Throws:</B>
721 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if the implementation cannot
722 convert the specified <CODE>Source</CODE> object<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPPart.html#setContent(javax.xml.transform.Source)"><CODE>setContent(javax.xml.transform.Source)</CODE></A></DL>
723 </DD>
724 </DL>
725 <!-- ========= END OF CLASS DATA ========= -->
726 <HR>
727
728
729 <!-- ======= START OF BOTTOM NAVBAR ====== -->
730 <A NAME="navbar_bottom"><!-- --></A>
731 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
732 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
733 <TR>
734 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
735 <A NAME="navbar_bottom_firstrow"><!-- --></A>
736 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
737 <TR ALIGN="center" VALIGN="top">
738 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
739 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
740 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
741 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SOAPPart.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
742 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
743 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
744 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
745 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
746 </TR>
747 </TABLE>
748 </TD>
749 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
750 </EM>
751 </TD>
752 </TR>
753
754 <TR>
755 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
756 &nbsp;<A HREF="../../../javax/xml/soap/SOAPMessage.html" title="class in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
757 &nbsp;NEXT CLASS</FONT></TD>
758 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
759 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
760 &nbsp;<A HREF="SOAPPart.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
761 &nbsp;<SCRIPT type="text/javascript">
762 <!--
763 if(window==top) {
764 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
765 }
766 //-->
767 </SCRIPT>
768 <NOSCRIPT>
769 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
770 </NOSCRIPT>
771
772 </FONT></TD>
773 </TR>
774 <TR>
775 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
776 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
777 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
778 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
779 </TR>
780 </TABLE>
781 <A NAME="skip-navbar_bottom"></A>
782 <!-- ======== END OF BOTTOM NAVBAR ======= -->
783
784 <HR>
785 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
786 </BODY>
787 </HTML>