| 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 |
AttachmentPart (Axis API) |
| 8 |
</TITLE> |
| 9 |
|
| 10 |
<META NAME="keywords" CONTENT="javax.xml.soap.AttachmentPart 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="AttachmentPart (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> </TD> |
| 36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AttachmentPart.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 |
PREV CLASS |
| 54 |
<A HREF="../../../javax/xml/soap/MessageFactory.html" title="class in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD> |
| 55 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 56 |
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> |
| 57 |
<A HREF="AttachmentPart.html" target="_top"><B>NO FRAMES</B></A> |
| 58 |
<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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 75 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 AttachmentPart</H2> |
| 88 |
<PRE> |
| 89 |
java.lang.Object |
| 90 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.xml.soap.AttachmentPart</B> |
| 91 |
</PRE> |
| 92 |
<DL> |
| 93 |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/apache/axis/attachments/AttachmentPart.html" title="class in org.apache.axis.attachments">AttachmentPart</A></DD> |
| 94 |
</DL> |
| 95 |
<HR> |
| 96 |
<DL> |
| 97 |
<DT>public abstract class <B>AttachmentPart</B><DT>extends java.lang.Object</DL> |
| 98 |
|
| 99 |
<P> |
| 100 |
<P>A single attachment to a <CODE>SOAPMessage</CODE> object. A |
| 101 |
<CODE>SOAPMessage</CODE> object may contain zero, one, or many |
| 102 |
<CODE>AttachmentPart</CODE> objects. Each <CODE> |
| 103 |
AttachmentPart</CODE> object consists of two parts, |
| 104 |
application-specific content and associated MIME headers. The |
| 105 |
MIME headers consists of name/value pairs that can be used to |
| 106 |
identify and describe the content.</P> |
| 107 |
|
| 108 |
<P>An <CODE>AttachmentPart</CODE> object must conform to |
| 109 |
certain standards.</P> |
| 110 |
|
| 111 |
<OL> |
| 112 |
<LI>It must conform to <A href= |
| 113 |
"http://www.ietf.org/rfc/rfc2045.txt">MIME [RFC2045] |
| 114 |
standards</A></LI> |
| 115 |
|
| 116 |
<LI>It MUST contain content</LI> |
| 117 |
|
| 118 |
<LI> |
| 119 |
The header portion MUST include the following header: |
| 120 |
|
| 121 |
<UL> |
| 122 |
<LI> |
| 123 |
<CODE>Content-Type</CODE><BR> |
| 124 |
This header identifies the type of data in the content |
| 125 |
of an <CODE>AttachmentPart</CODE> object and MUST |
| 126 |
conform to [RFC2045]. The following is an example of a |
| 127 |
Content-Type header: |
| 128 |
<PRE> |
| 129 |
Content-Type: application/xml |
| 130 |
|
| 131 |
</PRE> |
| 132 |
The following line of code, in which <CODE>ap</CODE> is |
| 133 |
an <CODE>AttachmentPart</CODE> object, sets the header |
| 134 |
shown in the previous example. |
| 135 |
<PRE> |
| 136 |
ap.setMimeHeader("Content-Type", "application/xml"); |
| 137 |
|
| 138 |
</PRE> |
| 139 |
|
| 140 |
<P></P> |
| 141 |
</LI> |
| 142 |
</UL> |
| 143 |
</LI> |
| 144 |
</OL> |
| 145 |
|
| 146 |
<P>There are no restrictions on the content portion of an |
| 147 |
<CODE>AttachmentPart</CODE> object. The content may be anything |
| 148 |
from a simple plain text object to a complex XML document or |
| 149 |
image file.</P> |
| 150 |
|
| 151 |
<P>An <CODE>AttachmentPart</CODE> object is created with the |
| 152 |
method <CODE>SOAPMessage.createAttachmentPart</CODE>. After |
| 153 |
setting its MIME headers, the <CODE>AttachmentPart</CODE> |
| 154 |
object is added to the message that created it with the method |
| 155 |
<CODE>SOAPMessage.addAttachmentPart</CODE>.</P> |
| 156 |
|
| 157 |
<P>The following code fragment, in which <CODE>m</CODE> is a |
| 158 |
<CODE>SOAPMessage</CODE> object and <CODE>contentStringl</CODE> |
| 159 |
is a <CODE>String</CODE>, creates an instance of <CODE> |
| 160 |
AttachmentPart</CODE>, sets the <CODE>AttachmentPart</CODE> |
| 161 |
object with some content and header information, and adds the |
| 162 |
<CODE>AttachmentPart</CODE> object to the <CODE> |
| 163 |
SOAPMessage</CODE> object.</P> |
| 164 |
<PRE> |
| 165 |
AttachmentPart ap1 = m.createAttachmentPart(); |
| 166 |
ap1.setContent(contentString1, "text/plain"); |
| 167 |
m.addAttachmentPart(ap1); |
| 168 |
</PRE> |
| 169 |
|
| 170 |
<P>The following code fragment creates and adds a second <CODE> |
| 171 |
AttachmentPart</CODE> instance to the same message. <CODE> |
| 172 |
jpegData</CODE> is a binary byte buffer representing the jpeg |
| 173 |
file.</P> |
| 174 |
<PRE> |
| 175 |
AttachmentPart ap2 = m.createAttachmentPart(); |
| 176 |
byte[] jpegData = ...; |
| 177 |
ap2.setContent(new ByteArrayInputStream(jpegData), "image/jpeg"); |
| 178 |
m.addAttachmentPart(ap2); |
| 179 |
</PRE> |
| 180 |
|
| 181 |
<P>The <CODE>getContent</CODE> method retrieves the contents |
| 182 |
and header from an <CODE>AttachmentPart</CODE> object. |
| 183 |
Depending on the <CODE>DataContentHandler</CODE> objects |
| 184 |
present, the returned <CODE>Object</CODE> can either be a typed |
| 185 |
Java object corresponding to the MIME type or an <CODE> |
| 186 |
InputStream</CODE> object that contains the content as |
| 187 |
bytes.</P> |
| 188 |
<PRE> |
| 189 |
String content1 = ap1.getContent(); |
| 190 |
java.io.InputStream content2 = ap2.getContent(); |
| 191 |
</PRE> |
| 192 |
The method <CODE>clearContent</CODE> removes all the content |
| 193 |
from an <CODE>AttachmentPart</CODE> object but does not affect |
| 194 |
its header information. |
| 195 |
<PRE> |
| 196 |
ap1.clearContent(); |
| 197 |
</PRE> |
| 198 |
<P> |
| 199 |
|
| 200 |
<P> |
| 201 |
<HR> |
| 202 |
|
| 203 |
<P> |
| 204 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
| 205 |
|
| 206 |
|
| 207 |
<!-- =========== FIELD SUMMARY =========== --> |
| 208 |
|
| 209 |
|
| 210 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 211 |
|
| 212 |
<A NAME="constructor_summary"><!-- --></A> |
| 213 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 214 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 215 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 216 |
<B>Constructor Summary</B></FONT></TD> |
| 217 |
</TR> |
| 218 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 219 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#AttachmentPart()">AttachmentPart</A></B>()</CODE> |
| 220 |
|
| 221 |
<BR> |
| 222 |
Create a new AttachmentPart.</TD> |
| 223 |
</TR> |
| 224 |
</TABLE> |
| 225 |
|
| 226 |
<!-- ========== METHOD SUMMARY =========== --> |
| 227 |
|
| 228 |
<A NAME="method_summary"><!-- --></A> |
| 229 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 230 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 231 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 232 |
<B>Method Summary</B></FONT></TD> |
| 233 |
</TR> |
| 234 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 235 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 236 |
<CODE>abstract void</CODE></FONT></TD> |
| 237 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#addMimeHeader(java.lang.String, java.lang.String)">addMimeHeader</A></B>(java.lang.String name, |
| 238 |
java.lang.String value)</CODE> |
| 239 |
|
| 240 |
<BR> |
| 241 |
Adds a MIME header with the specified name and value to |
| 242 |
this <CODE>AttachmentPart</CODE> object.</TD> |
| 243 |
</TR> |
| 244 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 245 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 246 |
<CODE>abstract void</CODE></FONT></TD> |
| 247 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#clearContent()">clearContent</A></B>()</CODE> |
| 248 |
|
| 249 |
<BR> |
| 250 |
Clears out the content of this <CODE> |
| 251 |
AttachmentPart</CODE> object.</TD> |
| 252 |
</TR> |
| 253 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 254 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 255 |
<CODE>abstract java.util.Iterator</CODE></FONT></TD> |
| 256 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getAllMimeHeaders()">getAllMimeHeaders</A></B>()</CODE> |
| 257 |
|
| 258 |
<BR> |
| 259 |
Retrieves all the headers for this <CODE> |
| 260 |
AttachmentPart</CODE> object as an iterator over the <CODE> |
| 261 |
MimeHeader</CODE> objects.</TD> |
| 262 |
</TR> |
| 263 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 264 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 265 |
<CODE>abstract java.lang.Object</CODE></FONT></TD> |
| 266 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContent()">getContent</A></B>()</CODE> |
| 267 |
|
| 268 |
<BR> |
| 269 |
Gets the content of this <code>AttachmentPart</code> object as a Java |
| 270 |
object.</TD> |
| 271 |
</TR> |
| 272 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 273 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 274 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 275 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContentId()">getContentId</A></B>()</CODE> |
| 276 |
|
| 277 |
<BR> |
| 278 |
Gets the value of the MIME header whose name is |
| 279 |
"Content-Id".</TD> |
| 280 |
</TR> |
| 281 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 282 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 283 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 284 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContentLocation()">getContentLocation</A></B>()</CODE> |
| 285 |
|
| 286 |
<BR> |
| 287 |
Gets the value of the MIME header |
| 288 |
"Content-Location".</TD> |
| 289 |
</TR> |
| 290 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 291 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 292 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 293 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContentType()">getContentType</A></B>()</CODE> |
| 294 |
|
| 295 |
<BR> |
| 296 |
Gets the value of the MIME header "Content-Type".</TD> |
| 297 |
</TR> |
| 298 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 299 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 300 |
<CODE>abstract javax.activation.DataHandler</CODE></FONT></TD> |
| 301 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getDataHandler()">getDataHandler</A></B>()</CODE> |
| 302 |
|
| 303 |
<BR> |
| 304 |
Gets the <CODE>DataHandler</CODE> object for this <CODE> |
| 305 |
AttachmentPart</CODE> object.</TD> |
| 306 |
</TR> |
| 307 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 308 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 309 |
<CODE>abstract java.util.Iterator</CODE></FONT></TD> |
| 310 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getMatchingMimeHeaders(java.lang.String[])">getMatchingMimeHeaders</A></B>(java.lang.String[] names)</CODE> |
| 311 |
|
| 312 |
<BR> |
| 313 |
Retrieves all <CODE>MimeHeader</CODE> objects that match |
| 314 |
a name in the given array.</TD> |
| 315 |
</TR> |
| 316 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 317 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 318 |
<CODE>abstract java.lang.String[]</CODE></FONT></TD> |
| 319 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getMimeHeader(java.lang.String)">getMimeHeader</A></B>(java.lang.String name)</CODE> |
| 320 |
|
| 321 |
<BR> |
| 322 |
Gets all the values of the header identified by the given |
| 323 |
<CODE>String</CODE>.</TD> |
| 324 |
</TR> |
| 325 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 326 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 327 |
<CODE>abstract java.util.Iterator</CODE></FONT></TD> |
| 328 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getNonMatchingMimeHeaders(java.lang.String[])">getNonMatchingMimeHeaders</A></B>(java.lang.String[] names)</CODE> |
| 329 |
|
| 330 |
<BR> |
| 331 |
Retrieves all <CODE>MimeHeader</CODE> objects whose name |
| 332 |
does not match a name in the given array.</TD> |
| 333 |
</TR> |
| 334 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 335 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 336 |
<CODE>abstract int</CODE></FONT></TD> |
| 337 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#getSize()">getSize</A></B>()</CODE> |
| 338 |
|
| 339 |
<BR> |
| 340 |
Returns the number of bytes in this <CODE> |
| 341 |
AttachmentPart</CODE> object.</TD> |
| 342 |
</TR> |
| 343 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 344 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 345 |
<CODE>abstract void</CODE></FONT></TD> |
| 346 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#removeAllMimeHeaders()">removeAllMimeHeaders</A></B>()</CODE> |
| 347 |
|
| 348 |
<BR> |
| 349 |
Removes all the MIME header entries.</TD> |
| 350 |
</TR> |
| 351 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 352 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 353 |
<CODE>abstract void</CODE></FONT></TD> |
| 354 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#removeMimeHeader(java.lang.String)">removeMimeHeader</A></B>(java.lang.String header)</CODE> |
| 355 |
|
| 356 |
<BR> |
| 357 |
Removes all MIME headers that match the given name.</TD> |
| 358 |
</TR> |
| 359 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 360 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 361 |
<CODE>abstract void</CODE></FONT></TD> |
| 362 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setContent(java.lang.Object, java.lang.String)">setContent</A></B>(java.lang.Object object, |
| 363 |
java.lang.String contentType)</CODE> |
| 364 |
|
| 365 |
<BR> |
| 366 |
Sets the content of this attachment part to that of the |
| 367 |
given <CODE>Object</CODE> and sets the value of the <CODE> |
| 368 |
Content-Type</CODE> header to the given type.</TD> |
| 369 |
</TR> |
| 370 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 371 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 372 |
<CODE> void</CODE></FONT></TD> |
| 373 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setContentId(java.lang.String)">setContentId</A></B>(java.lang.String contentId)</CODE> |
| 374 |
|
| 375 |
<BR> |
| 376 |
Sets the MIME header "Content-Id" with the given |
| 377 |
value.</TD> |
| 378 |
</TR> |
| 379 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 380 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 381 |
<CODE> void</CODE></FONT></TD> |
| 382 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setContentLocation(java.lang.String)">setContentLocation</A></B>(java.lang.String contentLocation)</CODE> |
| 383 |
|
| 384 |
<BR> |
| 385 |
Sets the MIME header "Content-Location" with the given |
| 386 |
value.</TD> |
| 387 |
</TR> |
| 388 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 389 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 390 |
<CODE> void</CODE></FONT></TD> |
| 391 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setContentType(java.lang.String)">setContentType</A></B>(java.lang.String contentType)</CODE> |
| 392 |
|
| 393 |
<BR> |
| 394 |
Sets the MIME header "Content-Type" with the given |
| 395 |
value.</TD> |
| 396 |
</TR> |
| 397 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 398 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 399 |
<CODE>abstract void</CODE></FONT></TD> |
| 400 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setDataHandler(javax.activation.DataHandler)">setDataHandler</A></B>(javax.activation.DataHandler datahandler)</CODE> |
| 401 |
|
| 402 |
<BR> |
| 403 |
Sets the given <CODE>DataHandler</CODE> object as the |
| 404 |
data handler for this <CODE>AttachmentPart</CODE> object.</TD> |
| 405 |
</TR> |
| 406 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 407 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 408 |
<CODE>abstract void</CODE></FONT></TD> |
| 409 |
<TD><CODE><B><A HREF="../../../javax/xml/soap/AttachmentPart.html#setMimeHeader(java.lang.String, java.lang.String)">setMimeHeader</A></B>(java.lang.String name, |
| 410 |
java.lang.String value)</CODE> |
| 411 |
|
| 412 |
<BR> |
| 413 |
Changes the first header entry that matches the given name |
| 414 |
to the given value, adding a new header if no existing |
| 415 |
header matches.</TD> |
| 416 |
</TR> |
| 417 |
</TABLE> |
| 418 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| 419 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 420 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 421 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
| 422 |
</TR> |
| 423 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 424 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| 425 |
</TR> |
| 426 |
</TABLE> |
| 427 |
|
| 428 |
<P> |
| 429 |
|
| 430 |
<!-- ============ FIELD DETAIL =========== --> |
| 431 |
|
| 432 |
|
| 433 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 434 |
|
| 435 |
<A NAME="constructor_detail"><!-- --></A> |
| 436 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 437 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 438 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 439 |
<B>Constructor Detail</B></FONT></TD> |
| 440 |
</TR> |
| 441 |
</TABLE> |
| 442 |
|
| 443 |
<A NAME="AttachmentPart()"><!-- --></A><H3> |
| 444 |
AttachmentPart</H3> |
| 445 |
<PRE> |
| 446 |
public <B>AttachmentPart</B>()</PRE> |
| 447 |
<DL> |
| 448 |
<DD>Create a new AttachmentPart. |
| 449 |
<P> |
| 450 |
</DL> |
| 451 |
|
| 452 |
<!-- ============ METHOD DETAIL ========== --> |
| 453 |
|
| 454 |
<A NAME="method_detail"><!-- --></A> |
| 455 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 456 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 457 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 458 |
<B>Method Detail</B></FONT></TD> |
| 459 |
</TR> |
| 460 |
</TABLE> |
| 461 |
|
| 462 |
<A NAME="getSize()"><!-- --></A><H3> |
| 463 |
getSize</H3> |
| 464 |
<PRE> |
| 465 |
public abstract int <B>getSize</B>() |
| 466 |
throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE> |
| 467 |
<DL> |
| 468 |
<DD>Returns the number of bytes in this <CODE> |
| 469 |
AttachmentPart</CODE> object. |
| 470 |
<P> |
| 471 |
<DD><DL> |
| 472 |
|
| 473 |
<DT><B>Returns:</B><DD>the size of this <CODE>AttachmentPart</CODE> object |
| 474 |
in bytes or -1 if the size cannot be determined |
| 475 |
<DT><B>Throws:</B> |
| 476 |
<DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if the content of this |
| 477 |
attachment is corrupted of if there was an exception |
| 478 |
while trying to determine the size.</DL> |
| 479 |
</DD> |
| 480 |
</DL> |
| 481 |
<HR> |
| 482 |
|
| 483 |
<A NAME="clearContent()"><!-- --></A><H3> |
| 484 |
clearContent</H3> |
| 485 |
<PRE> |
| 486 |
public abstract void <B>clearContent</B>()</PRE> |
| 487 |
<DL> |
| 488 |
<DD>Clears out the content of this <CODE> |
| 489 |
AttachmentPart</CODE> object. The MIME header portion is left |
| 490 |
untouched. |
| 491 |
<P> |
| 492 |
<DD><DL> |
| 493 |
</DL> |
| 494 |
</DD> |
| 495 |
</DL> |
| 496 |
<HR> |
| 497 |
|
| 498 |
<A NAME="getContent()"><!-- --></A><H3> |
| 499 |
getContent</H3> |
| 500 |
<PRE> |
| 501 |
public abstract java.lang.Object <B>getContent</B>() |
| 502 |
throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE> |
| 503 |
<DL> |
| 504 |
<DD>Gets the content of this <code>AttachmentPart</code> object as a Java |
| 505 |
object. The type of the returned Java object depends on (1) the |
| 506 |
<code>DataContentHandler</code> object that is used to interpret the bytes |
| 507 |
and (2) the <code>Content-Type</code> given in the header. |
| 508 |
<p> |
| 509 |
For the MIME content types "text/plain", "text/html" and "text/xml", the |
| 510 |
<code>DataContentHandler</code> object does the conversions to and |
| 511 |
from the Java types corresponding to the MIME types. |
| 512 |
For other MIME types,the <code>DataContentHandler</code> object |
| 513 |
can return an <code>InputStream</code> object that contains the content data |
| 514 |
as raw bytes. |
| 515 |
<p> |
| 516 |
A JAXM-compliant implementation must, as a minimum, return a |
| 517 |
<code>java.lang.String</code> object corresponding to any content |
| 518 |
stream with a <code>Content-Type</code> value of |
| 519 |
<code>text/plain</code>, a |
| 520 |
<code>javax.xml.transform.StreamSource</code> object corresponding to a |
| 521 |
content stream with a <code>Content-Type</code> value of |
| 522 |
<code>text/xml</code>, a <code>java.awt.Image</code> object |
| 523 |
corresponding to a content stream with a |
| 524 |
<code>Content-Type</code> value of <code>image/gif</code> or |
| 525 |
<code>image/jpeg</code>. For those content types that an |
| 526 |
installed <code>DataContentHandler</code> object does not understand, the |
| 527 |
<code>DataContentHandler</code> object is required to return a |
| 528 |
<code>java.io.InputStream</code> object with the raw bytes. |
| 529 |
<P> |
| 530 |
<DD><DL> |
| 531 |
|
| 532 |
<DT><B>Returns:</B><DD>a Java object with the content of this <CODE> |
| 533 |
AttachmentPart</CODE> object |
| 534 |
<DT><B>Throws:</B> |
| 535 |
<DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is no content set |
| 536 |
into this <CODE>AttachmentPart</CODE> object or if there |
| 537 |
was a data transformation error</DL> |
| 538 |
</DD> |
| 539 |
</DL> |
| 540 |
<HR> |
| 541 |
|
| 542 |
<A NAME="setContent(java.lang.Object, java.lang.String)"><!-- --></A><H3> |
| 543 |
setContent</H3> |
| 544 |
<PRE> |
| 545 |
public abstract void <B>setContent</B>(java.lang.Object object, |
| 546 |
java.lang.String contentType)</PRE> |
| 547 |
<DL> |
| 548 |
<DD>Sets the content of this attachment part to that of the |
| 549 |
given <CODE>Object</CODE> and sets the value of the <CODE> |
| 550 |
Content-Type</CODE> header to the given type. The type of the |
| 551 |
<CODE>Object</CODE> should correspond to the value given for |
| 552 |
the <CODE>Content-Type</CODE>. This depends on the particular |
| 553 |
set of <CODE>DataContentHandler</CODE> objects in use. |
| 554 |
<P> |
| 555 |
<DD><DL> |
| 556 |
<DT><B>Parameters:</B><DD><CODE>object</CODE> - the Java object that makes up |
| 557 |
the content for this attachment part<DD><CODE>contentType</CODE> - the MIME string that |
| 558 |
specifies the type of the content |
| 559 |
<DT><B>Throws:</B> |
| 560 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 561 |
the contentType does not match the type of the content |
| 562 |
object, or if there was no <CODE> |
| 563 |
DataContentHandler</CODE> object for this content |
| 564 |
object<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContent()"><CODE>getContent()</CODE></A></DL> |
| 565 |
</DD> |
| 566 |
</DL> |
| 567 |
<HR> |
| 568 |
|
| 569 |
<A NAME="getDataHandler()"><!-- --></A><H3> |
| 570 |
getDataHandler</H3> |
| 571 |
<PRE> |
| 572 |
public abstract javax.activation.DataHandler <B>getDataHandler</B>() |
| 573 |
throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE> |
| 574 |
<DL> |
| 575 |
<DD>Gets the <CODE>DataHandler</CODE> object for this <CODE> |
| 576 |
AttachmentPart</CODE> object. |
| 577 |
<P> |
| 578 |
<DD><DL> |
| 579 |
|
| 580 |
<DT><B>Returns:</B><DD>the <CODE>DataHandler</CODE> object associated with |
| 581 |
this <CODE>AttachmentPart</CODE> object |
| 582 |
<DT><B>Throws:</B> |
| 583 |
<DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is |
| 584 |
no data in this <CODE>AttachmentPart</CODE> object</DL> |
| 585 |
</DD> |
| 586 |
</DL> |
| 587 |
<HR> |
| 588 |
|
| 589 |
<A NAME="setDataHandler(javax.activation.DataHandler)"><!-- --></A><H3> |
| 590 |
setDataHandler</H3> |
| 591 |
<PRE> |
| 592 |
public abstract void <B>setDataHandler</B>(javax.activation.DataHandler datahandler)</PRE> |
| 593 |
<DL> |
| 594 |
<DD>Sets the given <CODE>DataHandler</CODE> object as the |
| 595 |
data handler for this <CODE>AttachmentPart</CODE> object. |
| 596 |
Typically, on an incoming message, the data handler is |
| 597 |
automatically set. When a message is being created and |
| 598 |
populated with content, the <CODE>setDataHandler</CODE> |
| 599 |
method can be used to get data from various data sources into |
| 600 |
the message. |
| 601 |
<P> |
| 602 |
<DD><DL> |
| 603 |
<DT><B>Parameters:</B><DD><CODE>datahandler</CODE> - <CODE>DataHandler</CODE> object to |
| 604 |
be set |
| 605 |
<DT><B>Throws:</B> |
| 606 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 607 |
there was a problem with the specified <CODE> |
| 608 |
DataHandler</CODE> object</DL> |
| 609 |
</DD> |
| 610 |
</DL> |
| 611 |
<HR> |
| 612 |
|
| 613 |
<A NAME="getContentId()"><!-- --></A><H3> |
| 614 |
getContentId</H3> |
| 615 |
<PRE> |
| 616 |
public java.lang.String <B>getContentId</B>()</PRE> |
| 617 |
<DL> |
| 618 |
<DD>Gets the value of the MIME header whose name is |
| 619 |
"Content-Id". |
| 620 |
<P> |
| 621 |
<DD><DL> |
| 622 |
|
| 623 |
<DT><B>Returns:</B><DD>a <CODE>String</CODE> giving the value of the |
| 624 |
"Content-Id" header or <CODE>null</CODE> if there is |
| 625 |
none<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/AttachmentPart.html#setContentId(java.lang.String)"><CODE>setContentId(java.lang.String)</CODE></A></DL> |
| 626 |
</DD> |
| 627 |
</DL> |
| 628 |
<HR> |
| 629 |
|
| 630 |
<A NAME="getContentLocation()"><!-- --></A><H3> |
| 631 |
getContentLocation</H3> |
| 632 |
<PRE> |
| 633 |
public java.lang.String <B>getContentLocation</B>()</PRE> |
| 634 |
<DL> |
| 635 |
<DD>Gets the value of the MIME header |
| 636 |
"Content-Location". |
| 637 |
<P> |
| 638 |
<DD><DL> |
| 639 |
|
| 640 |
<DT><B>Returns:</B><DD>a <CODE>String</CODE> giving the value of the |
| 641 |
"Content-Location" header or <CODE>null</CODE> if there |
| 642 |
is none</DL> |
| 643 |
</DD> |
| 644 |
</DL> |
| 645 |
<HR> |
| 646 |
|
| 647 |
<A NAME="getContentType()"><!-- --></A><H3> |
| 648 |
getContentType</H3> |
| 649 |
<PRE> |
| 650 |
public java.lang.String <B>getContentType</B>()</PRE> |
| 651 |
<DL> |
| 652 |
<DD>Gets the value of the MIME header "Content-Type". |
| 653 |
<P> |
| 654 |
<DD><DL> |
| 655 |
|
| 656 |
<DT><B>Returns:</B><DD>a <CODE>String</CODE> giving the value of the |
| 657 |
"Content-Type" header or <CODE>null</CODE> if there is |
| 658 |
none</DL> |
| 659 |
</DD> |
| 660 |
</DL> |
| 661 |
<HR> |
| 662 |
|
| 663 |
<A NAME="setContentId(java.lang.String)"><!-- --></A><H3> |
| 664 |
setContentId</H3> |
| 665 |
<PRE> |
| 666 |
public void <B>setContentId</B>(java.lang.String contentId)</PRE> |
| 667 |
<DL> |
| 668 |
<DD>Sets the MIME header "Content-Id" with the given |
| 669 |
value. |
| 670 |
<P> |
| 671 |
<DD><DL> |
| 672 |
<DT><B>Parameters:</B><DD><CODE>contentId</CODE> - a <CODE>String</CODE> giving |
| 673 |
the value of the "Content-Id" header |
| 674 |
<DT><B>Throws:</B> |
| 675 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 676 |
there was a problem with the specified <CODE> |
| 677 |
contentId</CODE> value<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContentId()"><CODE>getContentId()</CODE></A></DL> |
| 678 |
</DD> |
| 679 |
</DL> |
| 680 |
<HR> |
| 681 |
|
| 682 |
<A NAME="setContentLocation(java.lang.String)"><!-- --></A><H3> |
| 683 |
setContentLocation</H3> |
| 684 |
<PRE> |
| 685 |
public void <B>setContentLocation</B>(java.lang.String contentLocation)</PRE> |
| 686 |
<DL> |
| 687 |
<DD>Sets the MIME header "Content-Location" with the given |
| 688 |
value. |
| 689 |
<P> |
| 690 |
<DD><DL> |
| 691 |
<DT><B>Parameters:</B><DD><CODE>contentLocation</CODE> - a <CODE>String</CODE> |
| 692 |
giving the value of the "Content-Location" header |
| 693 |
<DT><B>Throws:</B> |
| 694 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 695 |
there was a problem with the specified content |
| 696 |
location</DL> |
| 697 |
</DD> |
| 698 |
</DL> |
| 699 |
<HR> |
| 700 |
|
| 701 |
<A NAME="setContentType(java.lang.String)"><!-- --></A><H3> |
| 702 |
setContentType</H3> |
| 703 |
<PRE> |
| 704 |
public void <B>setContentType</B>(java.lang.String contentType)</PRE> |
| 705 |
<DL> |
| 706 |
<DD>Sets the MIME header "Content-Type" with the given |
| 707 |
value. |
| 708 |
<P> |
| 709 |
<DD><DL> |
| 710 |
<DT><B>Parameters:</B><DD><CODE>contentType</CODE> - a <CODE>String</CODE> |
| 711 |
giving the value of the "Content-Type" header |
| 712 |
<DT><B>Throws:</B> |
| 713 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 714 |
there was a problem with the specified content type</DL> |
| 715 |
</DD> |
| 716 |
</DL> |
| 717 |
<HR> |
| 718 |
|
| 719 |
<A NAME="removeMimeHeader(java.lang.String)"><!-- --></A><H3> |
| 720 |
removeMimeHeader</H3> |
| 721 |
<PRE> |
| 722 |
public abstract void <B>removeMimeHeader</B>(java.lang.String header)</PRE> |
| 723 |
<DL> |
| 724 |
<DD>Removes all MIME headers that match the given name. |
| 725 |
<P> |
| 726 |
<DD><DL> |
| 727 |
<DT><B>Parameters:</B><DD><CODE>header</CODE> - - the string name of the MIME |
| 728 |
header/s to be removed</DL> |
| 729 |
</DD> |
| 730 |
</DL> |
| 731 |
<HR> |
| 732 |
|
| 733 |
<A NAME="removeAllMimeHeaders()"><!-- --></A><H3> |
| 734 |
removeAllMimeHeaders</H3> |
| 735 |
<PRE> |
| 736 |
public abstract void <B>removeAllMimeHeaders</B>()</PRE> |
| 737 |
<DL> |
| 738 |
<DD>Removes all the MIME header entries. |
| 739 |
<P> |
| 740 |
<DD><DL> |
| 741 |
</DL> |
| 742 |
</DD> |
| 743 |
</DL> |
| 744 |
<HR> |
| 745 |
|
| 746 |
<A NAME="getMimeHeader(java.lang.String)"><!-- --></A><H3> |
| 747 |
getMimeHeader</H3> |
| 748 |
<PRE> |
| 749 |
public abstract java.lang.String[] <B>getMimeHeader</B>(java.lang.String name)</PRE> |
| 750 |
<DL> |
| 751 |
<DD>Gets all the values of the header identified by the given |
| 752 |
<CODE>String</CODE>. |
| 753 |
<P> |
| 754 |
<DD><DL> |
| 755 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header; example: |
| 756 |
"Content-Type" |
| 757 |
<DT><B>Returns:</B><DD>a <CODE>String</CODE> array giving the value for the |
| 758 |
specified header<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/AttachmentPart.html#setMimeHeader(java.lang.String, java.lang.String)"><CODE>setMimeHeader(java.lang.String, java.lang.String)</CODE></A></DL> |
| 759 |
</DD> |
| 760 |
</DL> |
| 761 |
<HR> |
| 762 |
|
| 763 |
<A NAME="setMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| 764 |
setMimeHeader</H3> |
| 765 |
<PRE> |
| 766 |
public abstract void <B>setMimeHeader</B>(java.lang.String name, |
| 767 |
java.lang.String value)</PRE> |
| 768 |
<DL> |
| 769 |
<DD>Changes the first header entry that matches the given name |
| 770 |
to the given value, adding a new header if no existing |
| 771 |
header matches. This method also removes all matching |
| 772 |
headers but the first. |
| 773 |
|
| 774 |
<P>Note that RFC822 headers can only contain US-ASCII |
| 775 |
characters.</P> |
| 776 |
<P> |
| 777 |
<DD><DL> |
| 778 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a <CODE>String</CODE> giving the |
| 779 |
name of the header for which to search<DD><CODE>value</CODE> - a <CODE>String</CODE> giving the |
| 780 |
value to be set for the header whose name matches the |
| 781 |
given name |
| 782 |
<DT><B>Throws:</B> |
| 783 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 784 |
there was a problem with the specified mime header name |
| 785 |
or value</DL> |
| 786 |
</DD> |
| 787 |
</DL> |
| 788 |
<HR> |
| 789 |
|
| 790 |
<A NAME="addMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| 791 |
addMimeHeader</H3> |
| 792 |
<PRE> |
| 793 |
public abstract void <B>addMimeHeader</B>(java.lang.String name, |
| 794 |
java.lang.String value)</PRE> |
| 795 |
<DL> |
| 796 |
<DD>Adds a MIME header with the specified name and value to |
| 797 |
this <CODE>AttachmentPart</CODE> object. |
| 798 |
|
| 799 |
<P>Note that RFC822 headers can contain only US-ASCII |
| 800 |
characters.</P> |
| 801 |
<P> |
| 802 |
<DD><DL> |
| 803 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a <CODE>String</CODE> giving the |
| 804 |
name of the header to be added<DD><CODE>value</CODE> - a <CODE>String</CODE> giving the |
| 805 |
value of the header to be added |
| 806 |
<DT><B>Throws:</B> |
| 807 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if |
| 808 |
there was a problem with the specified mime header name |
| 809 |
or value</DL> |
| 810 |
</DD> |
| 811 |
</DL> |
| 812 |
<HR> |
| 813 |
|
| 814 |
<A NAME="getAllMimeHeaders()"><!-- --></A><H3> |
| 815 |
getAllMimeHeaders</H3> |
| 816 |
<PRE> |
| 817 |
public abstract java.util.Iterator <B>getAllMimeHeaders</B>()</PRE> |
| 818 |
<DL> |
| 819 |
<DD>Retrieves all the headers for this <CODE> |
| 820 |
AttachmentPart</CODE> object as an iterator over the <CODE> |
| 821 |
MimeHeader</CODE> objects. |
| 822 |
<P> |
| 823 |
<DD><DL> |
| 824 |
|
| 825 |
<DT><B>Returns:</B><DD>an <CODE>Iterator</CODE> object with all of the Mime |
| 826 |
headers for this <CODE>AttachmentPart</CODE> object</DL> |
| 827 |
</DD> |
| 828 |
</DL> |
| 829 |
<HR> |
| 830 |
|
| 831 |
<A NAME="getMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3> |
| 832 |
getMatchingMimeHeaders</H3> |
| 833 |
<PRE> |
| 834 |
public abstract java.util.Iterator <B>getMatchingMimeHeaders</B>(java.lang.String[] names)</PRE> |
| 835 |
<DL> |
| 836 |
<DD>Retrieves all <CODE>MimeHeader</CODE> objects that match |
| 837 |
a name in the given array. |
| 838 |
<P> |
| 839 |
<DD><DL> |
| 840 |
<DT><B>Parameters:</B><DD><CODE>names</CODE> - a <CODE>String</CODE> array with |
| 841 |
the name(s) of the MIME headers to be returned |
| 842 |
<DT><B>Returns:</B><DD>all of the MIME headers that match one of the names |
| 843 |
in the given array as an <CODE>Iterator</CODE> |
| 844 |
object</DL> |
| 845 |
</DD> |
| 846 |
</DL> |
| 847 |
<HR> |
| 848 |
|
| 849 |
<A NAME="getNonMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3> |
| 850 |
getNonMatchingMimeHeaders</H3> |
| 851 |
<PRE> |
| 852 |
public abstract java.util.Iterator <B>getNonMatchingMimeHeaders</B>(java.lang.String[] names)</PRE> |
| 853 |
<DL> |
| 854 |
<DD>Retrieves all <CODE>MimeHeader</CODE> objects whose name |
| 855 |
does not match a name in the given array. |
| 856 |
<P> |
| 857 |
<DD><DL> |
| 858 |
<DT><B>Parameters:</B><DD><CODE>names</CODE> - a <CODE>String</CODE> array with |
| 859 |
the name(s) of the MIME headers not to be returned |
| 860 |
<DT><B>Returns:</B><DD>all of the MIME headers in this <CODE> |
| 861 |
AttachmentPart</CODE> object except those that match one |
| 862 |
of the names in the given array. The nonmatching MIME |
| 863 |
headers are returned as an <CODE>Iterator</CODE> |
| 864 |
object.</DL> |
| 865 |
</DD> |
| 866 |
</DL> |
| 867 |
<!-- ========= END OF CLASS DATA ========= --> |
| 868 |
<HR> |
| 869 |
|
| 870 |
|
| 871 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 872 |
<A NAME="navbar_bottom"><!-- --></A> |
| 873 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 874 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 875 |
<TR> |
| 876 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 877 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
| 878 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 879 |
<TR ALIGN="center" VALIGN="top"> |
| 880 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 881 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 882 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 883 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AttachmentPart.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 884 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 885 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 886 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 887 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 888 |
</TR> |
| 889 |
</TABLE> |
| 890 |
</TD> |
| 891 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 892 |
</EM> |
| 893 |
</TD> |
| 894 |
</TR> |
| 895 |
|
| 896 |
<TR> |
| 897 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 898 |
PREV CLASS |
| 899 |
<A HREF="../../../javax/xml/soap/MessageFactory.html" title="class in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD> |
| 900 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 901 |
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> |
| 902 |
<A HREF="AttachmentPart.html" target="_top"><B>NO FRAMES</B></A> |
| 903 |
<SCRIPT type="text/javascript"> |
| 904 |
<!-- |
| 905 |
if(window==top) { |
| 906 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 907 |
} |
| 908 |
//--> |
| 909 |
</SCRIPT> |
| 910 |
<NOSCRIPT> |
| 911 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 912 |
</NOSCRIPT> |
| 913 |
|
| 914 |
</FONT></TD> |
| 915 |
</TR> |
| 916 |
<TR> |
| 917 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 918 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 919 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 920 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 921 |
</TR> |
| 922 |
</TABLE> |
| 923 |
<A NAME="skip-navbar_bottom"></A> |
| 924 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 925 |
|
| 926 |
<HR> |
| 927 |
Copyright © 2005 Apache Web Services Project. All Rights Reserved. |
| 928 |
</BODY> |
| 929 |
</HTML> |