You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@james.apache.org by ba...@apache.org on 2007/03/31 17:51:42 UTC

svn commit: r524442 [14/17] - in /james/site/trunk/www: jsieve/apidocs/org/apache/jsieve/parser/generated/ jsieve/xref-test/org/apache/jsieve/javaxmail/ jspf/apidocs/org/apache/james/jspf/impl/ jspf/apidocs/org/apache/james/jspf/policies/ jspf/apidocs/...

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/Policy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/Policy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/Policy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/Policy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Policy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/Policy.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>package</strong> org.apache.james.jspf.policies;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em> * Return an spf record from a given domain. </em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> {
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>      <em>/**<em>*</em></em>
+<a name="35" href="#35">35</a>  <em>     * Get a record for the given domain</em>
+<a name="36" href="#36">36</a>  <em>     * </em>
+<a name="37" href="#37">37</a>  <em>     * @param currentDomain the domain to retrieve the SPFRecord for</em>
+<a name="38" href="#38">38</a>  <em>     * @return the SPFRecord found</em>
+<a name="39" href="#39">39</a>  <em>     * @throws PermErrorException exception</em>
+<a name="40" href="#40">40</a>  <em>     * @throws TempErrorException exception</em>
+<a name="41" href="#41">41</a>  <em>     * @throws NoneException exception</em>
+<a name="42" href="#42">42</a>  <em>     * @throws NeutralException exception</em>
+<a name="43" href="#43">43</a>  <em>     */</em>
+<a name="44" href="#44">44</a>      <strong>public</strong> SPF1Record getSPFRecord(String currentDomain)
+<a name="45" href="#45">45</a>              throws PermErrorException, TempErrorException, NoneException,
+<a name="46" href="#46">46</a>              NeutralException;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFRetriever.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFRetriever.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFRetriever.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFRetriever.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,157 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SPFRetriever xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/SPFRetriever.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> org.apache.james.jspf.policies;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.james.jspf.core.DNSService;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.james.jspf.core.SPF1Constants;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="6" href="#6">6</a>   <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="7" href="#7">7</a>   <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="8" href="#8">8</a>   <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> java.util.Iterator;
+<a name="12" href="#12">12</a>  <strong>import</strong> java.util.List;
+<a name="13" href="#13">13</a>  
+<a name="14" href="#14">14</a>  <em>/**<em>*</em></em>
+<a name="15" href="#15">15</a>  <em> * Get the raw dns txt or spf entry which contains a spf entry</em>
+<a name="16" href="#16">16</a>  <em> */</em>
+<a name="17" href="#17">17</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/SPFRetriever.html">SPFRetriever</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</a> {
+<a name="18" href="#18">18</a>      <em>/**<em>*</em></em>
+<a name="19" href="#19">19</a>  <em>     * dns service</em>
+<a name="20" href="#20">20</a>  <em>     */</em>
+<a name="21" href="#21">21</a>      <strong>private</strong> <strong>final</strong> <a href="../../../../../org/apache/james/jspf/core/DNSService.html">DNSService</a> dns;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>      <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em>     * A new instance of the SPFRetriever</em>
+<a name="26" href="#26">26</a>  <em>     * </em>
+<a name="27" href="#27">27</a>  <em>     * @param dns the dns service</em>
+<a name="28" href="#28">28</a>  <em>     */</em>
+<a name="29" href="#29">29</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/policies/SPFRetriever.html">SPFRetriever</a>(<a href="../../../../../org/apache/james/jspf/core/DNSService.html">DNSService</a> dns) {
+<a name="30" href="#30">30</a>          <strong>this</strong>.dns = dns;
+<a name="31" href="#31">31</a>      }
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>      <em>/**<em>*</em></em>
+<a name="35" href="#35">35</a>  <em>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#setChildPolicy(org.apache.james.jspf.policies.Policy)</em>
+<a name="36" href="#36">36</a>  <em>     */</em>
+<a name="37" href="#37">37</a>      <strong>public</strong> <strong>void</strong> setChildPolicy(<a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> children) {
+<a name="38" href="#38">38</a>          <strong>if</strong> (children != <strong>null</strong>) {
+<a name="39" href="#39">39</a>              <strong>throw</strong> <strong>new</strong> IllegalStateException(<span class="string">"Cannot set a child policy for SPFRetriever"</span>);
+<a name="40" href="#40">40</a>          }
+<a name="41" href="#41">41</a>      }
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>      <em>/**<em>*</em></em>
+<a name="45" href="#45">45</a>  <em>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#getSPFRecordOverride(java.lang.String)</em>
+<a name="46" href="#46">46</a>  <em>     */</em>
+<a name="47" href="#47">47</a>      <strong>protected</strong> SPF1Record getSPFRecordOverride(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="48" href="#48">48</a>          <em class="comment">// retrieve the SPFRecord</em>
+<a name="49" href="#49">49</a>          String spfDnsEntry = retrieveSpfRecord(currentDomain);
+<a name="50" href="#50">50</a>          <strong>if</strong> (spfDnsEntry != <strong>null</strong>) {
+<a name="51" href="#51">51</a>              <strong>return</strong> <strong>new</strong> SPF1Record(spfDnsEntry);
+<a name="52" href="#52">52</a>          } <strong>else</strong> {
+<a name="53" href="#53">53</a>              <strong>return</strong> <strong>null</strong>;
+<a name="54" href="#54">54</a>          }
+<a name="55" href="#55">55</a>      }
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>      <em>/**<em>*</em></em>
+<a name="58" href="#58">58</a>  <em>     * Get the SPF-Record for a server</em>
+<a name="59" href="#59">59</a>  <em>     * </em>
+<a name="60" href="#60">60</a>  <em>     * @param dns</em>
+<a name="61" href="#61">61</a>  <em>     *            The dns service to query</em>
+<a name="62" href="#62">62</a>  <em>     * @param hostname</em>
+<a name="63" href="#63">63</a>  <em>     *            The hostname for which we want to retrieve the SPF-Record</em>
+<a name="64" href="#64">64</a>  <em>     * @param spfVersion</em>
+<a name="65" href="#65">65</a>  <em>     *            The SPF-Version which should used.</em>
+<a name="66" href="#66">66</a>  <em>     * @return The SPF-Record if one is found.</em>
+<a name="67" href="#67">67</a>  <em>     * @throws PermErrorException</em>
+<a name="68" href="#68">68</a>  <em>     *             if more then one SPF-Record was found.</em>
+<a name="69" href="#69">69</a>  <em>     * @throws TempErrorException</em>
+<a name="70" href="#70">70</a>  <em>     *             if the lookup result was "TRY_AGAIN"</em>
+<a name="71" href="#71">71</a>  <em>     */</em>
+<a name="72" href="#72">72</a>      <strong>protected</strong> String retrieveSpfRecord(String hostname)
+<a name="73" href="#73">73</a>              throws PermErrorException, <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a> {
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>          <strong>try</strong> {
+<a name="76" href="#76">76</a>              <em class="comment">// first check for SPF-Type records</em>
+<a name="77" href="#77">77</a>              List spfR = dns.getRecords(hostname, DNSService.SPF);
+<a name="78" href="#78">78</a>              
+<a name="79" href="#79">79</a>              <strong>if</strong> (spfR == <strong>null</strong> || spfR.isEmpty()) {
+<a name="80" href="#80">80</a>                  <em class="comment">// do DNS lookup for TXT</em>
+<a name="81" href="#81">81</a>                  spfR = dns.getRecords(hostname, DNSService.TXT);
+<a name="82" href="#82">82</a>              }
+<a name="83" href="#83">83</a>      
+<a name="84" href="#84">84</a>              <em class="comment">// process returned records</em>
+<a name="85" href="#85">85</a>              <strong>if</strong> (spfR != <strong>null</strong> &amp;&amp; !spfR.isEmpty()) {
+<a name="86" href="#86">86</a>                  <strong>return</strong> extractSPFRecord(spfR);
+<a name="87" href="#87">87</a>              } <strong>else</strong> {
+<a name="88" href="#88">88</a>                  <strong>return</strong> <strong>null</strong>;
+<a name="89" href="#89">89</a>              }
+<a name="90" href="#90">90</a>          } <strong>catch</strong> (DNSService.TimeoutException e) {
+<a name="91" href="#91">91</a>              <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a>(<span class="string">"Timeout querying dns"</span>);
+<a name="92" href="#92">92</a>          }
+<a name="93" href="#93">93</a>      }
+<a name="94" href="#94">94</a>      
+<a name="95" href="#95">95</a>      <em>/**<em>*</em></em>
+<a name="96" href="#96">96</a>  <em>     * Return the extracted SPF-Record </em>
+<a name="97" href="#97">97</a>  <em>     *  </em>
+<a name="98" href="#98">98</a>  <em>     * @param spfR the List which holds TXT/SPF - Records</em>
+<a name="99" href="#99">99</a>  <em>     * @return returnValue the extracted SPF-Record</em>
+<a name="100" href="#100">100</a> <em>     * @throws PermErrorException if more then one SPF - Record was found in the </em>
+<a name="101" href="#101">101</a> <em>     *                            given List.</em>
+<a name="102" href="#102">102</a> <em>     */</em>
+<a name="103" href="#103">103</a>     <strong>protected</strong> String extractSPFRecord(List spfR) throws PermErrorException {
+<a name="104" href="#104">104</a>        String returnValue = <strong>null</strong>;
+<a name="105" href="#105">105</a>         Iterator all = spfR.iterator();
+<a name="106" href="#106">106</a>            
+<a name="107" href="#107">107</a>         <strong>while</strong> (all.hasNext()) {
+<a name="108" href="#108">108</a>             <em class="comment">// DO NOT trim the result!</em>
+<a name="109" href="#109">109</a>             String compare = all.next().toString();
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a>             <em class="comment">// TODO is this correct? we remove the first and last char if the</em>
+<a name="112" href="#112">112</a>             <em class="comment">// result has an initial " </em>
+<a name="113" href="#113">113</a>             <em class="comment">// remove '&quot;'</em>
+<a name="114" href="#114">114</a>             <strong>if</strong> (compare.charAt(0)=='&quot;') {
+<a name="115" href="#115">115</a>                 compare = compare.toLowerCase().substring(1,
+<a name="116" href="#116">116</a>                         compare.length() - 1);
+<a name="117" href="#117">117</a>             }
+<a name="118" href="#118">118</a> 
+<a name="119" href="#119">119</a>             <em class="comment">// We trim the compare value only for the comparison</em>
+<a name="120" href="#120">120</a>             <strong>if</strong> (compare.toLowerCase().trim().startsWith(SPF1Constants.SPF_VERSION + <span class="string">" "</span>) || compare.trim().equalsIgnoreCase(SPF1Constants.SPF_VERSION)) {
+<a name="121" href="#121">121</a>                 <strong>if</strong> (returnValue == <strong>null</strong>) {
+<a name="122" href="#122">122</a>                     returnValue = compare;
+<a name="123" href="#123">123</a>                 } <strong>else</strong> {
+<a name="124" href="#124">124</a>                     <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(
+<a name="125" href="#125">125</a>                             <span class="string">"More than 1 SPF record found"</span>);
+<a name="126" href="#126">126</a>                 }
+<a name="127" href="#127">127</a>             }
+<a name="128" href="#128">128</a>         }
+<a name="129" href="#129">129</a>         
+<a name="130" href="#130">130</a>         <strong>return</strong> <strong>return</strong>Value;
+<a name="131" href="#131">131</a>     }
+<a name="132" href="#132">132</a>     
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a>     <em>/**<em>*</em></em>
+<a name="135" href="#135">135</a> <em>     * Return the DNSService</em>
+<a name="136" href="#136">136</a> <em>     * </em>
+<a name="137" href="#137">137</a> <em>     * @return the dns</em>
+<a name="138" href="#138">138</a> <em>     */</em>
+<a name="139" href="#139">139</a>     <strong>protected</strong> <a href="../../../../../org/apache/james/jspf/core/DNSService.html">DNSService</a> getDNSService() {
+<a name="140" href="#140">140</a>         <strong>return</strong> dns;
+<a name="141" href="#141">141</a>     }
+<a name="142" href="#142">142</a> 
+<a name="143" href="#143">143</a> 
+<a name="144" href="#144">144</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,81 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SPFStrictCheckerRetriever xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <strong>package</strong> org.apache.james.jspf.policies;
+<a name="2" href="#2">2</a>   
+<a name="3" href="#3">3</a>   <strong>import</strong> org.apache.james.jspf.core.DNSService;
+<a name="4" href="#4">4</a>   <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="5" href="#5">5</a>   <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> java.util.List;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <em>/**<em>*</em></em>
+<a name="10" href="#10">10</a>  <em> * Get the raw dns txt or spf entry which contains a spf entry. If a domain</em>
+<a name="11" href="#11">11</a>  <em> * publish both, and both are not equals it throws a PermError</em>
+<a name="12" href="#12">12</a>  <em> */</em>
+<a name="13" href="#13">13</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html">SPFStrictCheckerRetriever</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/SPFRetriever.html">SPFRetriever</a> {
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/policies/SPFStrictCheckerRetriever.html">SPFStrictCheckerRetriever</a>(<a href="../../../../../org/apache/james/jspf/core/DNSService.html">DNSService</a> dns) {
+<a name="16" href="#16">16</a>          <strong>super</strong>(dns);
+<a name="17" href="#17">17</a>      }
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>      <em>/**<em>*</em></em>
+<a name="20" href="#20">20</a>  <em>     * Get the SPF-Record for a server</em>
+<a name="21" href="#21">21</a>  <em>     * </em>
+<a name="22" href="#22">22</a>  <em>     * </em>
+<a name="23" href="#23">23</a>  <em>     * @param dns</em>
+<a name="24" href="#24">24</a>  <em>     *            The dns service to query</em>
+<a name="25" href="#25">25</a>  <em>     * @param hostname</em>
+<a name="26" href="#26">26</a>  <em>     *            The hostname for which we want to retrieve the SPF-Record</em>
+<a name="27" href="#27">27</a>  <em>     * @param spfVersion</em>
+<a name="28" href="#28">28</a>  <em>     *            The SPF-Version which should used.</em>
+<a name="29" href="#29">29</a>  <em>     * @return The SPF-Record if one is found.</em>
+<a name="30" href="#30">30</a>  <em>     * @throws PermErrorException</em>
+<a name="31" href="#31">31</a>  <em>     *             if more then one SPF-Record was found, or one SPF-Type SPF-Record </em>
+<a name="32" href="#32">32</a>  <em>     *             and one TXT-Type SPF-Record was published and these are not equals.</em>
+<a name="33" href="#33">33</a>  <em>     * @throws TempErrorException</em>
+<a name="34" href="#34">34</a>  <em>     *             if the lookup result was "TRY_AGAIN"</em>
+<a name="35" href="#35">35</a>  <em>     */</em>
+<a name="36" href="#36">36</a>      <strong>protected</strong> String retrieveSpfRecord(String hostname)
+<a name="37" href="#37">37</a>              throws PermErrorException, <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a> {
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>          <strong>try</strong> {
+<a name="40" href="#40">40</a>              String spfR1 = <strong>null</strong>;
+<a name="41" href="#41">41</a>              String spfR2 = <strong>null</strong>;
+<a name="42" href="#42">42</a>              <em class="comment">// do DNS lookup for SPF-Type</em>
+<a name="43" href="#43">43</a>              List spfR = getDNSService().getRecords(hostname, DNSService.SPF);
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>              <em class="comment">// do DNS lookup for TXT-Type</em>
+<a name="46" href="#46">46</a>              List spfTxtR = getDNSService().getRecords(hostname, DNSService.TXT);
+<a name="47" href="#47">47</a>              
+<a name="48" href="#48">48</a>              <strong>if</strong> (spfR != <strong>null</strong>) spfR1 = extractSPFRecord(spfR);
+<a name="49" href="#49">49</a>              <strong>if</strong> (spfTxtR != <strong>null</strong>) spfR2 = extractSPFRecord(spfTxtR);
+<a name="50" href="#50">50</a>              
+<a name="51" href="#51">51</a>              <strong>if</strong> (spfR1 != <strong>null</strong> &amp;&amp; spfR2 == <strong>null</strong>) {
+<a name="52" href="#52">52</a>                  <strong>return</strong> spfR1;
+<a name="53" href="#53">53</a>              } <strong>else</strong> <strong>if</strong> (spfR1 == <strong>null</strong> &amp;&amp; spfR2 != <strong>null</strong>) {
+<a name="54" href="#54">54</a>                  <strong>return</strong> spfR2;
+<a name="55" href="#55">55</a>              } <strong>else</strong> <strong>if</strong> (spfR1 != <strong>null</strong> &amp;&amp; spfR2 != <strong>null</strong>) {
+<a name="56" href="#56">56</a>                  <strong>if</strong> (spfR1.toLowerCase().equals(spfR2.toLowerCase()) == false) {
+<a name="57" href="#57">57</a>                      <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(<span class="string">"Published SPF records not equals"</span>);
+<a name="58" href="#58">58</a>                  } <strong>else</strong> {
+<a name="59" href="#59">59</a>                      <strong>return</strong> spfR1;
+<a name="60" href="#60">60</a>                  }
+<a name="61" href="#61">61</a>              } <strong>else</strong> {
+<a name="62" href="#62">62</a>                  <strong>return</strong> <strong>null</strong>;
+<a name="63" href="#63">63</a>              }
+<a name="64" href="#64">64</a>          } <strong>catch</strong> (DNSService.TimeoutException e) {
+<a name="65" href="#65">65</a>              <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a>(<span class="string">"Timeout querying dns"</span>);
+<a name="66" href="#66">66</a>          }
+<a name="67" href="#67">67</a>      }
+<a name="68" href="#68">68</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-frame.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-frame.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-frame.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,51 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+        <title>Apache JAMES jSPF 0.9b4 Reference Package org.apache.james.jspf.policies</title>
+        <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+    </head>
+    <body>
+
+        <h3>
+            <a href="package-summary.html" target="classFrame">org.apache.james.jspf.policies</a>
+        </h3>
+
+        <h3>Classes</h3>
+
+        <ul>
+                        <li>
+                <a href="AbstractNestedPolicy.html" target="classFrame">AbstractNestedPolicy</a>
+            </li>
+                        <li>
+                <a href="ChainPolicy.html" target="classFrame">ChainPolicy</a>
+            </li>
+                        <li>
+                <a href="InitialChecksPolicy.html" target="classFrame">InitialChecksPolicy</a>
+            </li>
+                        <li>
+                <a href="NestedPolicy.html" target="classFrame">NestedPolicy</a>
+            </li>
+                        <li>
+                <a href="NeutralIfNotMatchPolicy.html" target="classFrame">NeutralIfNotMatchPolicy</a>
+            </li>
+                        <li>
+                <a href="NoSPFRecordFoundPolicy.html" target="classFrame">NoSPFRecordFoundPolicy</a>
+            </li>
+                        <li>
+                <a href="ParseRecordPolicy.html" target="classFrame">ParseRecordPolicy</a>
+            </li>
+                        <li>
+                <a href="Policy.html" target="classFrame">Policy</a>
+            </li>
+                        <li>
+                <a href="SPFRetriever.html" target="classFrame">SPFRetriever</a>
+            </li>
+                        <li>
+                <a href="SPFStrictCheckerRetriever.html" target="classFrame">SPFStrictCheckerRetriever</a>
+            </li>
+                    </ul>
+
+    </body>
+</html>

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-summary.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-summary.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/package-summary.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,112 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+        <title>Apache JAMES jSPF 0.9b4 Reference Package $name</title>
+        <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+    </head>
+    <body>
+                <div class="overview">
+            <ul>
+                <li>
+                    <a href="../../../../../overview-summary.html">Overview</a>
+                </li>
+                <li class="selected">Package</li>
+            </ul>
+        </div>
+        <div class="framenoframe">
+            <ul>
+                <li>
+                    <a href="../../../../../index.html" target="_top">FRAMES</a>
+                </li>
+                <li>
+                    <a href="package-summary.html" target="_top">NO FRAMES</a>
+                </li>
+            </ul>
+        </div>
+        
+                <h2>Package org.apache.james.jspf.policies</h2>
+
+        <table class="summary">
+            <thead>
+                <tr>
+                    <th>Class Summary</th>
+                </tr>
+            </thead>
+            <tbody>
+                                <tr>
+                    <td>
+                        <a href="AbstractNestedPolicy.html" target="classFrame">AbstractNestedPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="ChainPolicy.html" target="classFrame">ChainPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="InitialChecksPolicy.html" target="classFrame">InitialChecksPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="NestedPolicy.html" target="classFrame">NestedPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="NeutralIfNotMatchPolicy.html" target="classFrame">NeutralIfNotMatchPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="NoSPFRecordFoundPolicy.html" target="classFrame">NoSPFRecordFoundPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="ParseRecordPolicy.html" target="classFrame">ParseRecordPolicy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="Policy.html" target="classFrame">Policy</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="SPFRetriever.html" target="classFrame">SPFRetriever</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="SPFStrictCheckerRetriever.html" target="classFrame">SPFStrictCheckerRetriever</a>
+                    </td>
+                </tr>
+                            </tbody>
+        </table>
+        
+                <div class="overview">
+            <ul>
+                <li>
+                    <a href="../../../../../overview-summary.html">Overview</a>
+                </li>
+                <li class="selected">Package</li>
+            </ul>
+        </div>
+        <div class="framenoframe">
+            <ul>
+                <li>
+                    <a href="../../../../../index.html" target="_top">FRAMES</a>
+                </li>
+                <li>
+                    <a href="package-summary.html" target="_top">NO FRAMES</a>
+                </li>
+            </ul>
+        </div>
+                <hr />
+        Copyright &copy; 2006 The Apache Software Foundation. All Rights Reserved.
+    </body>
+</html>

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/DNSServiceEnabled.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/DNSServiceEnabled.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/DNSServiceEnabled.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/DNSServiceEnabled.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DNSServiceEnabled xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/wiring/DNSServiceEnabled.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>package</strong> org.apache.james.jspf.wiring;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.james.jspf.core.DNSService;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * Components that need to log can implement this interface so that</em>
+<a name="26" href="#26">26</a>  <em> * the container will provide the DNSService</em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/wiring/DNSServiceEnabled.html">DNSServiceEnabled</a> {
+<a name="29" href="#29">29</a>      <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em>     * Provide component with a DNSService.</em>
+<a name="31" href="#31">31</a>  <em>     * </em>
+<a name="32" href="#32">32</a>  <em>     * @param service</em>
+<a name="33" href="#33">33</a>  <em>     *            the dns service. Must not be &lt;code>null&lt;/code>.</em>
+<a name="34" href="#34">34</a>  <em>     */</em>
+<a name="35" href="#35">35</a>      <strong>void</strong> enableDNSService(<a href="../../../../../org/apache/james/jspf/core/DNSService.html">DNSService</a> service);
+<a name="36" href="#36">36</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/LogEnabled.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/LogEnabled.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/LogEnabled.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/LogEnabled.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>LogEnabled xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/wiring/LogEnabled.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>package</strong> org.apache.james.jspf.wiring;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.james.jspf.core.Logger;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * Components that need to log can implement this interface to be provided</em>
+<a name="26" href="#26">26</a>  <em> * Loggers.</em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/wiring/LogEnabled.html">LogEnabled</a> {
+<a name="29" href="#29">29</a>      <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em>     * Provide component with a logger.</em>
+<a name="31" href="#31">31</a>  <em>     * </em>
+<a name="32" href="#32">32</a>  <em>     * @param logger</em>
+<a name="33" href="#33">33</a>  <em>     *            the logger. Must not be &lt;code>null&lt;/code>.</em>
+<a name="34" href="#34">34</a>  <em>     */</em>
+<a name="35" href="#35">35</a>      <strong>void</strong> enableLogging(<a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> logger);
+<a name="36" href="#36">36</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/SPFCheckEnabled.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/SPFCheckEnabled.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/SPFCheckEnabled.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/SPFCheckEnabled.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SPFCheckEnabled xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/wiring/SPFCheckEnabled.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>package</strong> org.apache.james.jspf.wiring;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.james.jspf.core.SPFChecker;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * Components that need to log can implement this interface so that</em>
+<a name="26" href="#26">26</a>  <em> * the container will provide the SPFChecker</em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/wiring/SPFCheckEnabled.html">SPFCheckEnabled</a> {
+<a name="29" href="#29">29</a>      <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em>     * Provide component with an SPF Checker.</em>
+<a name="31" href="#31">31</a>  <em>     * </em>
+<a name="32" href="#32">32</a>  <em>     * @param checker</em>
+<a name="33" href="#33">33</a>  <em>     *            the checker. Must not be &lt;code>null&lt;/code>.</em>
+<a name="34" href="#34">34</a>  <em>     */</em>
+<a name="35" href="#35">35</a>      <strong>void</strong> enableSPFChecking(<a href="../../../../../org/apache/james/jspf/core/SPFChecker.html">SPFChecker</a> checker);
+<a name="36" href="#36">36</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringService.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringService.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringService.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringService.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,57 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WiringService xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/wiring/WiringService.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>package</strong> org.apache.james.jspf.wiring;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
+<a name="24" href="#24">24</a>  <em> * This is a service used to wire a component with its dependencies.</em>
+<a name="25" href="#25">25</a>  <em> */</em>
+<a name="26" href="#26">26</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/wiring/WiringService.html">WiringService</a> {
+<a name="27" href="#27">27</a>      
+<a name="28" href="#28">28</a>      <strong>public</strong> <strong>static</strong> <strong>class</strong> WiringServiceException <strong>extends</strong> Exception {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>          <strong>public</strong> WiringServiceException(String string) {
+<a name="31" href="#31">31</a>              <strong>super</strong>(string);
+<a name="32" href="#32">32</a>          }
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>      }
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>      <em>/**<em>*</em></em>
+<a name="37" href="#37">37</a>  <em>     * Called to wire a component</em>
+<a name="38" href="#38">38</a>  <em>     * </em>
+<a name="39" href="#39">39</a>  <em>     * @param component the component to be wired</em>
+<a name="40" href="#40">40</a>  <em>     * @throws WiringServiceException if an error occours</em>
+<a name="41" href="#41">41</a>  <em>     */</em>
+<a name="42" href="#42">42</a>      <strong>void</strong> wire(Object component) throws WiringServiceException;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringServiceTable.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringServiceTable.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringServiceTable.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/WiringServiceTable.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>WiringServiceTable xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/wiring/WiringServiceTable.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em>/**<em>***************************************************************</em></em>
+<a name="2" href="#2">2</a>   <em> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a name="3" href="#3">3</a>   <em> * or more contributor license agreements.  See the NOTICE file *</em>
+<a name="4" href="#4">4</a>   <em> * distributed with this work for additional information        *</em>
+<a name="5" href="#5">5</a>   <em> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a name="6" href="#6">6</a>   <em> * to you under the Apache License, Version 2.0 (the            *</em>
+<a name="7" href="#7">7</a>   <em> * "License"); you may not use this file except in compliance   *</em>
+<a name="8" href="#8">8</a>   <em> * with the License.  You may obtain a copy of the License at   *</em>
+<a name="9" href="#9">9</a>   <em> *                                                              *</em>
+<a name="10" href="#10">10</a>  <em> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a name="11" href="#11">11</a>  <em> *                                                              *</em>
+<a name="12" href="#12">12</a>  <em> * Unless required by applicable law or agreed to in writing,   *</em>
+<a name="13" href="#13">13</a>  <em> * software distributed under the License is distributed on an  *</em>
+<a name="14" href="#14">14</a>  <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a name="15" href="#15">15</a>  <em> * KIND, either express or implied.  See the License for the    *</em>
+<a name="16" href="#16">16</a>  <em> * specific language governing permissions and limitations      *</em>
+<a name="17" href="#17">17</a>  <em> * under the License.                                           *</em>
+<a name="18" href="#18">18</a>  <em> ****************************************************************/</em>
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>package</strong> org.apache.james.jspf.wiring;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> java.lang.reflect.InvocationTargetException;
+<a name="24" href="#24">24</a>  <strong>import</strong> java.lang.reflect.Method;
+<a name="25" href="#25">25</a>  <strong>import</strong> java.util.Hashtable;
+<a name="26" href="#26">26</a>  <strong>import</strong> java.util.Iterator;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/wiring/WiringServiceTable.html">WiringServiceTable</a> <strong>extends</strong> Hashtable implements <a href="../../../../../org/apache/james/jspf/wiring/WiringService.html">WiringService</a> {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>      <strong>public</strong> <strong>void</strong> wire(Object component) throws WiringServiceException {
+<a name="31" href="#31">31</a>          Iterator i = keySet().iterator();
+<a name="32" href="#32">32</a>          <strong>while</strong> (i.hasNext()) {
+<a name="33" href="#33">33</a>              Class enablingClass = (Class) i.next();
+<a name="34" href="#34">34</a>              <strong>if</strong> (enablingClass.isInstance(component)) {
+<a name="35" href="#35">35</a>                  Method[] m = enablingClass.getDeclaredMethods();
+<a name="36" href="#36">36</a>                  <strong>if</strong> (m!=<strong>null</strong> &amp;&amp; m.length == 1 &amp;&amp; m[0] != <strong>null</strong>) {
+<a name="37" href="#37">37</a>                      <strong>try</strong> {
+<a name="38" href="#38">38</a>                          m[0].invoke(component, <strong>new</strong> Object[] {get(enablingClass)});
+<a name="39" href="#39">39</a>                      } <strong>catch</strong> (IllegalArgumentException e) {
+<a name="40" href="#40">40</a>                          <strong>throw</strong> <strong>new</strong> WiringServiceException(<span class="string">"Illegal argument invoking enabled service: "</span>+enablingClass.toString());
+<a name="41" href="#41">41</a>                      } <strong>catch</strong> (InvocationTargetException e) {
+<a name="42" href="#42">42</a>                          <strong>throw</strong> <strong>new</strong> WiringServiceException(<span class="string">"Unable to invoke enabled service: "</span>+enablingClass.toString());
+<a name="43" href="#43">43</a>                      } <strong>catch</strong> (IllegalAccessException e) {
+<a name="44" href="#44">44</a>                          <strong>throw</strong> <strong>new</strong> WiringServiceException(<span class="string">"Unable to invoke enabled service: "</span>+enablingClass.toString());
+<a name="45" href="#45">45</a>                      }
+<a name="46" href="#46">46</a>                  }
+<a name="47" href="#47">47</a>              }
+<a name="48" href="#48">48</a>          }
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>      }
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-frame.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-frame.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-frame.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,36 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+        <title>Apache JAMES jSPF 0.9b4 Reference Package org.apache.james.jspf.wiring</title>
+        <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+    </head>
+    <body>
+
+        <h3>
+            <a href="package-summary.html" target="classFrame">org.apache.james.jspf.wiring</a>
+        </h3>
+
+        <h3>Classes</h3>
+
+        <ul>
+                        <li>
+                <a href="DNSServiceEnabled.html" target="classFrame">DNSServiceEnabled</a>
+            </li>
+                        <li>
+                <a href="LogEnabled.html" target="classFrame">LogEnabled</a>
+            </li>
+                        <li>
+                <a href="SPFCheckEnabled.html" target="classFrame">SPFCheckEnabled</a>
+            </li>
+                        <li>
+                <a href="WiringService.html" target="classFrame">WiringService</a>
+            </li>
+                        <li>
+                <a href="WiringServiceTable.html" target="classFrame">WiringServiceTable</a>
+            </li>
+                    </ul>
+
+    </body>
+</html>

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-summary.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-summary.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/wiring/package-summary.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,87 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+        <title>Apache JAMES jSPF 0.9b4 Reference Package $name</title>
+        <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+    </head>
+    <body>
+                <div class="overview">
+            <ul>
+                <li>
+                    <a href="../../../../../overview-summary.html">Overview</a>
+                </li>
+                <li class="selected">Package</li>
+            </ul>
+        </div>
+        <div class="framenoframe">
+            <ul>
+                <li>
+                    <a href="../../../../../index.html" target="_top">FRAMES</a>
+                </li>
+                <li>
+                    <a href="package-summary.html" target="_top">NO FRAMES</a>
+                </li>
+            </ul>
+        </div>
+        
+                <h2>Package org.apache.james.jspf.wiring</h2>
+
+        <table class="summary">
+            <thead>
+                <tr>
+                    <th>Class Summary</th>
+                </tr>
+            </thead>
+            <tbody>
+                                <tr>
+                    <td>
+                        <a href="DNSServiceEnabled.html" target="classFrame">DNSServiceEnabled</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="LogEnabled.html" target="classFrame">LogEnabled</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="SPFCheckEnabled.html" target="classFrame">SPFCheckEnabled</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="WiringService.html" target="classFrame">WiringService</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="WiringServiceTable.html" target="classFrame">WiringServiceTable</a>
+                    </td>
+                </tr>
+                            </tbody>
+        </table>
+        
+                <div class="overview">
+            <ul>
+                <li>
+                    <a href="../../../../../overview-summary.html">Overview</a>
+                </li>
+                <li class="selected">Package</li>
+            </ul>
+        </div>
+        <div class="framenoframe">
+            <ul>
+                <li>
+                    <a href="../../../../../index.html" target="_top">FRAMES</a>
+                </li>
+                <li>
+                    <a href="package-summary.html" target="_top">NO FRAMES</a>
+                </li>
+            </ul>
+        </div>
+                <hr />
+        Copyright &copy; 2006 The Apache Software Foundation. All Rights Reserved.
+    </body>
+</html>