attachmentpart.html
来自「j2ee api,很好的api。我这现在有」· HTML 代码 · 共 881 行 · 第 1/3 页
HTML
881 行
<DD><DL><DT><B>Returns:</B><DD>a <code>String</code> giving the value of the "Content-Id" header or <code>null</code> if there is 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></DD></DL><HR><A NAME="getContentLocation()"><!-- --></A><H3>getContentLocation</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContentLocation</B>()</PRE><DL><DD>Gets the value of the MIME header whose name is "Content-Location".<P><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> giving the value of the "Content-Location" header or <code>null</code> if there is none</DL></DD></DL><HR><A NAME="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContentType</B>()</PRE><DL><DD>Gets the value of the MIME header whose name is "Content-Type".<P><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> giving the value of the "Content-Type" header or <code>null</code> if there is none</DL></DD></DL><HR><A NAME="setContentId(java.lang.String)"><!-- --></A><H3>setContentId</H3><PRE>public void <B>setContentId</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contentId)</PRE><DL><DD>Sets the MIME header whose name is "Content-Id" with the given value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>contentId</CODE> - a <code>String</code> giving the value of the "Content-Id" header<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there was a problem with the specified <code>contentId</code> value<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/AttachmentPart.html#getContentId()"><CODE>getContentId()</CODE></A></DL></DD></DL><HR><A NAME="setContentLocation(java.lang.String)"><!-- --></A><H3>setContentLocation</H3><PRE>public void <B>setContentLocation</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contentLocation)</PRE><DL><DD>Sets the MIME header whose name is "Content-Location" with the given value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>contentLocation</CODE> - a <code>String</code> giving the value of the "Content-Location" header<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there was a problem with the specified content location</DL></DD></DL><HR><A NAME="setContentType(java.lang.String)"><!-- --></A><H3>setContentType</H3><PRE>public void <B>setContentType</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> contentType)</PRE><DL><DD>Sets the MIME header whose name is "Content-Type" with the given value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>contentType</CODE> - a <code>String</code> giving the value of the "Content-Type" header<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there was a problem with the specified content type</DL></DD></DL><HR><A NAME="removeMimeHeader(java.lang.String)"><!-- --></A><H3>removeMimeHeader</H3><PRE>public abstract void <B>removeMimeHeader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> header)</PRE><DL><DD>Removes all MIME headers that match the given name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - the string name of the MIME header/s to be removed</DL></DD></DL><HR><A NAME="removeAllMimeHeaders()"><!-- --></A><H3>removeAllMimeHeaders</H3><PRE>public abstract void <B>removeAllMimeHeaders</B>()</PRE><DL><DD>Removes all the MIME header entries.<P><DD><DL></DL></DD></DL><HR><A NAME="getMimeHeader(java.lang.String)"><!-- --></A><H3>getMimeHeader</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>getMimeHeader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Gets all the values of the header identified by the given <code>String</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header; example: "Content-Type"<DT><B>Returns:</B><DD>a <code>String</code> array giving the value for the 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></DD></DL><HR><A NAME="setMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>setMimeHeader</H3><PRE>public abstract void <B>setMimeHeader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Changes the first header entry that matches the given name to the given value, adding a new header if no existing header matches. This method also removes all matching headers but the first. <p> Note that RFC822 headers can only contain US-ASCII characters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> giving the name of the header for which to search<DD><CODE>value</CODE> - a <code>String</code> giving the value to be set for the header whose name matches the given name<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there was a problem with the specified mime header name or value</DL></DD></DL><HR><A NAME="addMimeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>addMimeHeader</H3><PRE>public abstract void <B>addMimeHeader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Adds a MIME header with the specified name and value to this <code>AttachmentPart</code> object. <p> Note that RFC822 headers can contain only US-ASCII characters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> giving the name of the header to be added<DD><CODE>value</CODE> - a <code>String</code> giving the value of the header to be added<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there was a problem with the specified mime header name or value</DL></DD></DL><HR><A NAME="getAllMimeHeaders()"><!-- --></A><H3>getAllMimeHeaders</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getAllMimeHeaders</B>()</PRE><DL><DD>Retrieves all the headers for this <code>AttachmentPart</code> object as an iterator over the <code>MimeHeader</code> objects.<P><DD><DL><DT><B>Returns:</B><DD>an <code>Iterator</code> object with all of the Mime headers for this <code>AttachmentPart</code> object</DL></DD></DL><HR><A NAME="getMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3>getMatchingMimeHeaders</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getMatchingMimeHeaders</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] names)</PRE><DL><DD>Retrieves all <code>MimeHeader</code> objects that match a name in the given array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - a <code>String</code> array with the name(s) of the MIME headers to be returned<DT><B>Returns:</B><DD>all of the MIME headers that match one of the names in the given array as an <code>Iterator</code> object</DL></DD></DL><HR><A NAME="getNonMatchingMimeHeaders(java.lang.String[])"><!-- --></A><H3>getNonMatchingMimeHeaders</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>getNonMatchingMimeHeaders</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] names)</PRE><DL><DD>Retrieves all <code>MimeHeader</code> objects whose name does not match a name in the given array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - a <code>String</code> array with the name(s) of the MIME headers not to be returned<DT><B>Returns:</B><DD>all of the MIME headers in this <code>AttachmentPart</code> object except those that match one of the names in the given array. The nonmatching MIME headers are returned as an <code>Iterator</code> object.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/xml/soap/MessageFactory.html" title="class in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="AttachmentPart.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?