Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  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_10) on Tue Nov 17 12:13:44 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. Uses of Class javax.mail.Provider (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="Uses of Class javax.mail.Provider (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
  44.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;PREV&nbsp;
  60. &nbsp;NEXT</FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../../index.html?javax/mail//class-useProvider.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="Provider.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. </TABLE>
  79. <A NAME="skip-navbar_top"></A>
  80. <!-- ========= END OF TOP NAVBAR ========= -->
  81.  
  82. <HR>
  83. <CENTER>
  84. <H2>
  85. <B>Uses of Class<br>javax.mail.Provider</B></H2>
  86. </CENTER>
  87.  
  88. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  89. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  90. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  91. Packages that use <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A></FONT></TH>
  92. </TR>
  93. <TR BGCOLOR="white" CLASS="TableRowColor">
  94. <TD><A HREF="#javax.mail"><B>javax.mail</B></A></TD>
  95. <TD>The JavaMail<sup><font size="-2">TM</font></sup> API
  96. provides classes that model a mail system.&nbsp;</TD>
  97. </TR>
  98. </TABLE>
  99. &nbsp;
  100. <P>
  101. <A NAME="javax.mail"><!-- --></A>
  102. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  103. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  104. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  105. Uses of <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A> in <A HREF="../../../javax/mail/package-summary.html">javax.mail</A></FONT></TH>
  106. </TR>
  107. </TABLE>
  108. &nbsp;
  109. <P>
  110.  
  111. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  112. <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
  113. <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../javax/mail/package-summary.html">javax.mail</A> that return <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A></FONT></TH>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  117. <CODE>&nbsp;<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A></CODE></FONT></TD>
  118. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getProvider(java.lang.String)">getProvider</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;protocol)</CODE>
  119.  
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the default Provider for the protocol
  122.  specified.</TD>
  123. </TR>
  124. <TR BGCOLOR="white" CLASS="TableRowColor">
  125. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  126. <CODE>&nbsp;<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A>[]</CODE></FONT></TD>
  127. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getProviders()">getProviders</A></B>()</CODE>
  128.  
  129. <BR>
  130. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns an array of all the implementations installed
  131.  via the javamail.[default.]providers files that can
  132.  be loaded using the ClassLoader available to this application.</TD>
  133. </TR>
  134. </TABLE>
  135. &nbsp;
  136. <P>
  137.  
  138. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  139. <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
  140. <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../javax/mail/package-summary.html">javax.mail</A> with parameters of type <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A></FONT></TH>
  141. </TR>
  142. <TR BGCOLOR="white" CLASS="TableRowColor">
  143. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  144. <CODE>&nbsp;void</CODE></FONT></TD>
  145. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#addProvider(javax.mail.Provider)">addProvider</A></B>(<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A>&nbsp;provider)</CODE>
  146.  
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a provider to the session.</TD>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  152. <CODE>&nbsp;<A HREF="../../../javax/mail/Store.html" title="class in javax.mail">Store</A></CODE></FONT></TD>
  153. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getStore(javax.mail.Provider)">getStore</A></B>(<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A>&nbsp;provider)</CODE>
  154.  
  155. <BR>
  156. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an instance of the store specified by Provider.</TD>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  160. <CODE>&nbsp;<A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
  161. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport(javax.mail.Provider)">getTransport</A></B>(<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A>&nbsp;provider)</CODE>
  162.  
  163. <BR>
  164. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an instance of the transport specified in the Provider.</TD>
  165. </TR>
  166. <TR BGCOLOR="white" CLASS="TableRowColor">
  167. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  168. <CODE>&nbsp;void</CODE></FONT></TD>
  169. <TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#setProvider(javax.mail.Provider)">setProvider</A></B>(<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A>&nbsp;provider)</CODE>
  170.  
  171. <BR>
  172. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the passed Provider to be the default implementation
  173.  for the protocol in Provider.protocol overriding any previous values.</TD>
  174. </TR>
  175. </TABLE>
  176. &nbsp;
  177. <P>
  178. <HR>
  179.  
  180.  
  181. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  182. <A NAME="navbar_bottom"><!-- --></A>
  183. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  184. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  185. <TR>
  186. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  187. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  188. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  189.   <TR ALIGN="center" VALIGN="top">
  190.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  191.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  192.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../javax/mail/Provider.html" title="class in javax.mail"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
  193.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
  194.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  195.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  196.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  197.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  198.   </TR>
  199. </TABLE>
  200. </TD>
  201. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  202. </EM>
  203. </TD>
  204. </TR>
  205.  
  206. <TR>
  207. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  208. &nbsp;PREV&nbsp;
  209. &nbsp;NEXT</FONT></TD>
  210. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  211.   <A HREF="../../../index.html?javax/mail//class-useProvider.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  212. &nbsp;<A HREF="Provider.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  213. &nbsp;<SCRIPT type="text/javascript">
  214.   <!--
  215.   if(window==top) {
  216.     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  217.   }
  218.   //-->
  219. </SCRIPT>
  220. <NOSCRIPT>
  221.   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  222. </NOSCRIPT>
  223.  
  224.  
  225. </FONT></TD>
  226. </TR>
  227. </TABLE>
  228. <A NAME="skip-navbar_bottom"></A>
  229. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  230.  
  231. <HR>
  232. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  233. </BODY>
  234. </HTML>
  235.