DataSourceResolver.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>DataSourceResolver (Apache Commons Email 1.5 API)</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="DataSourceResolver (Apache Commons Email 1.5 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":6,"i1":6};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/DataSourceResolver.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../index-all.html">Index</a></li>
  47. <li><a href="../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html" title="class in org.apache.commons.mail"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/apache/commons/mail/DefaultAuthenticator.html" title="class in org.apache.commons.mail"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/apache/commons/mail/DataSourceResolver.html" target="_top">Frames</a></li>
  57. <li><a href="DataSourceResolver.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li>Field&nbsp;|&nbsp;</li>
  79. <li>Constr&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li>Constr&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.apache.commons.mail</div>
  96. <h2 title="Interface DataSourceResolver" class="title">Interface DataSourceResolver</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <div class="description">
  100. <ul class="blockList">
  101. <li class="blockList">
  102. <dl>
  103. <dt>All Known Implementing Classes:</dt>
  104. <dd><a href="../../../../org/apache/commons/mail/resolver/DataSourceBaseResolver.html" title="class in org.apache.commons.mail.resolver">DataSourceBaseResolver</a>, <a href="../../../../org/apache/commons/mail/resolver/DataSourceClassPathResolver.html" title="class in org.apache.commons.mail.resolver">DataSourceClassPathResolver</a>, <a href="../../../../org/apache/commons/mail/resolver/DataSourceCompositeResolver.html" title="class in org.apache.commons.mail.resolver">DataSourceCompositeResolver</a>, <a href="../../../../org/apache/commons/mail/resolver/DataSourceFileResolver.html" title="class in org.apache.commons.mail.resolver">DataSourceFileResolver</a>, <a href="../../../../org/apache/commons/mail/resolver/DataSourceUrlResolver.html" title="class in org.apache.commons.mail.resolver">DataSourceUrlResolver</a></dd>
  105. </dl>
  106. <hr>
  107. <br>
  108. <pre>public interface <span class="typeNameLabel">DataSourceResolver</span></pre>
  109. <div class="block">Creates a <code>DataSource</code> based on an URL.</div>
  110. <dl>
  111. <dt><span class="simpleTagLabel">Since:</span></dt>
  112. <dd>1.3</dd>
  113. </dl>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="summary">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <ul class="blockList">
  122. <li class="blockList"><a name="method.summary">
  123. <!-- -->
  124. </a>
  125. <h3>Method Summary</h3>
  126. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  127. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  128. <tr>
  129. <th class="colFirst" scope="col">Modifier and Type</th>
  130. <th class="colLast" scope="col">Method and Description</th>
  131. </tr>
  132. <tr id="i0" class="altColor">
  133. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></td>
  134. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/DataSourceResolver.html#resolve-java.lang.String-">resolve</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourceLocation)</code>
  135. <div class="block">Resolves the given resource location to a <code>DataSource</code>.</div>
  136. </td>
  137. </tr>
  138. <tr id="i1" class="rowColor">
  139. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></td>
  140. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/DataSourceResolver.html#resolve-java.lang.String-boolean-">resolve</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourceLocation,
  141. boolean&nbsp;isLenient)</code>
  142. <div class="block">Resolves the given resource location to a <code>DataSource</code>.</div>
  143. </td>
  144. </tr>
  145. </table>
  146. </li>
  147. </ul>
  148. </li>
  149. </ul>
  150. </div>
  151. <div class="details">
  152. <ul class="blockList">
  153. <li class="blockList">
  154. <!-- ============ METHOD DETAIL ========== -->
  155. <ul class="blockList">
  156. <li class="blockList"><a name="method.detail">
  157. <!-- -->
  158. </a>
  159. <h3>Method Detail</h3>
  160. <a name="resolve-java.lang.String-">
  161. <!-- -->
  162. </a>
  163. <ul class="blockList">
  164. <li class="blockList">
  165. <h4>resolve</h4>
  166. <pre><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a>&nbsp;resolve(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourceLocation)
  167. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  168. <div class="block">Resolves the given resource location to a <code>DataSource</code>.</div>
  169. <dl>
  170. <dt><span class="paramLabel">Parameters:</span></dt>
  171. <dd><code>resourceLocation</code> - the location of the resource</dd>
  172. <dt><span class="returnLabel">Returns:</span></dt>
  173. <dd>the <code>DataSource</code></dd>
  174. <dt><span class="throwsLabel">Throws:</span></dt>
  175. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - the resource was not found</dd>
  176. </dl>
  177. </li>
  178. </ul>
  179. <a name="resolve-java.lang.String-boolean-">
  180. <!-- -->
  181. </a>
  182. <ul class="blockListLast">
  183. <li class="blockList">
  184. <h4>resolve</h4>
  185. <pre><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a>&nbsp;resolve(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourceLocation,
  186. boolean&nbsp;isLenient)
  187. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  188. <div class="block">Resolves the given resource location to a <code>DataSource</code>.</div>
  189. <dl>
  190. <dt><span class="paramLabel">Parameters:</span></dt>
  191. <dd><code>resourceLocation</code> - the location of the resource</dd>
  192. <dd><code>isLenient</code> - shall we ignore resources not found or complain with an exception?</dd>
  193. <dt><span class="returnLabel">Returns:</span></dt>
  194. <dd>the data source containing the resource or null if the resource was not found in lenient mode</dd>
  195. <dt><span class="throwsLabel">Throws:</span></dt>
  196. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - resolving the resource failed</dd>
  197. </dl>
  198. </li>
  199. </ul>
  200. </li>
  201. </ul>
  202. </li>
  203. </ul>
  204. </div>
  205. </div>
  206. <!-- ========= END OF CLASS DATA ========= -->
  207. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  208. <div class="bottomNav"><a name="navbar.bottom">
  209. <!-- -->
  210. </a>
  211. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  212. <a name="navbar.bottom.firstrow">
  213. <!-- -->
  214. </a>
  215. <ul class="navList" title="Navigation">
  216. <li><a href="../../../../overview-summary.html">Overview</a></li>
  217. <li><a href="package-summary.html">Package</a></li>
  218. <li class="navBarCell1Rev">Class</li>
  219. <li><a href="class-use/DataSourceResolver.html">Use</a></li>
  220. <li><a href="package-tree.html">Tree</a></li>
  221. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  222. <li><a href="../../../../index-all.html">Index</a></li>
  223. <li><a href="../../../../help-doc.html">Help</a></li>
  224. </ul>
  225. </div>
  226. <div class="subNav">
  227. <ul class="navList">
  228. <li><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html" title="class in org.apache.commons.mail"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  229. <li><a href="../../../../org/apache/commons/mail/DefaultAuthenticator.html" title="class in org.apache.commons.mail"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  230. </ul>
  231. <ul class="navList">
  232. <li><a href="../../../../index.html?org/apache/commons/mail/DataSourceResolver.html" target="_top">Frames</a></li>
  233. <li><a href="DataSourceResolver.html" target="_top">No&nbsp;Frames</a></li>
  234. </ul>
  235. <ul class="navList" id="allclasses_navbar_bottom">
  236. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  237. </ul>
  238. <div>
  239. <script type="text/javascript"><!--
  240. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  241. if(window==top) {
  242. allClassesLink.style.display = "block";
  243. }
  244. else {
  245. allClassesLink.style.display = "none";
  246. }
  247. //-->
  248. </script>
  249. </div>
  250. <div>
  251. <ul class="subNavList">
  252. <li>Summary:&nbsp;</li>
  253. <li>Nested&nbsp;|&nbsp;</li>
  254. <li>Field&nbsp;|&nbsp;</li>
  255. <li>Constr&nbsp;|&nbsp;</li>
  256. <li><a href="#method.summary">Method</a></li>
  257. </ul>
  258. <ul class="subNavList">
  259. <li>Detail:&nbsp;</li>
  260. <li>Field&nbsp;|&nbsp;</li>
  261. <li>Constr&nbsp;|&nbsp;</li>
  262. <li><a href="#method.detail">Method</a></li>
  263. </ul>
  264. </div>
  265. <a name="skip.navbar.bottom">
  266. <!-- -->
  267. </a></div>
  268. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  269. <p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  270. </body>
  271. </html>