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 [13/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/impl/DefaultSPF.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/DefaultSPF.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/DefaultSPF.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/DefaultSPF.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>DefaultSPF xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/impl/DefaultSPF.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.impl;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.james.jspf.SPF;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.core.Logger;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/impl/DefaultSPF.html">DefaultSPF</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/SPF.html">SPF</a> {
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>      
+<a name="28" href="#28">28</a>      <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em>     * Uses default Log4JLogger and DNSJava based dns resolver</em>
+<a name="30" href="#30">30</a>  <em>     */</em>
+<a name="31" href="#31">31</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/impl/DefaultSPF.html">DefaultSPF</a>() {
+<a name="32" href="#32">32</a>          <strong>this</strong>(<strong>new</strong> Log4JLogger(org.apache.log4j.Logger.getLogger(SPF.<strong>class</strong>)));
+<a name="33" href="#33">33</a>      }
+<a name="34" href="#34">34</a>      
+<a name="35" href="#35">35</a>      <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em>     * Uses passed logger and DNSJava based dns resolver</em>
+<a name="37" href="#37">37</a>  <em>     * </em>
+<a name="38" href="#38">38</a>  <em>     * @param logger the logger to use</em>
+<a name="39" href="#39">39</a>  <em>     */</em>
+<a name="40" href="#40">40</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/impl/DefaultSPF.html">DefaultSPF</a>(<a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> logger) {
+<a name="41" href="#41">41</a>          <strong>super</strong>(<strong>new</strong> <a href="../../../../../org/apache/james/jspf/impl/DNSServiceXBillImpl.html">DNSServiceXBillImpl</a>(logger), logger);
+<a name="42" href="#42">42</a>      }
+<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/impl/Log4JLogger.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/Log4JLogger.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/Log4JLogger.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/Log4JLogger.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,220 @@
+<!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>Log4JLogger xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/impl/Log4JLogger.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.impl;
+<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>  <strong>import</strong> org.apache.log4j.Level;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <em>/**<em>*</em></em>
+<a name="26" href="#26">26</a>  <em> * Implementation of the Logger interface using the Log4J implementation</em>
+<a name="27" href="#27">27</a>  <em> * strategy.</em>
+<a name="28" href="#28">28</a>  <em> */</em>
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> Log4JLogger implements <a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> {
+<a name="30" href="#30">30</a>      <strong>private</strong> org.apache.log4j.Logger m_Logger;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>      <strong>public</strong> Log4JLogger(org.apache.log4j.Logger log4jLogger) {
+<a name="33" href="#33">33</a>          m_Logger = log4jLogger;
+<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>     * Log a debug message.</em>
+<a name="38" href="#38">38</a>  <em>     * </em>
+<a name="39" href="#39">39</a>  <em>     * @param message</em>
+<a name="40" href="#40">40</a>  <em>     *            the message</em>
+<a name="41" href="#41">41</a>  <em>     */</em>
+<a name="42" href="#42">42</a>      <strong>public</strong> <strong>void</strong> debug(String message) {
+<a name="43" href="#43">43</a>          m_Logger.debug(message);
+<a name="44" href="#44">44</a>      }
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>      <em>/**<em>*</em></em>
+<a name="47" href="#47">47</a>  <em>     * Log a debug message.</em>
+<a name="48" href="#48">48</a>  <em>     * </em>
+<a name="49" href="#49">49</a>  <em>     * @param message</em>
+<a name="50" href="#50">50</a>  <em>     *            the message</em>
+<a name="51" href="#51">51</a>  <em>     * @param throwable</em>
+<a name="52" href="#52">52</a>  <em>     *            the throwable</em>
+<a name="53" href="#53">53</a>  <em>     */</em>
+<a name="54" href="#54">54</a>      <strong>public</strong> <strong>void</strong> debug(String message, Throwable throwable) {
+<a name="55" href="#55">55</a>          m_Logger.debug(message, throwable);
+<a name="56" href="#56">56</a>      }
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>      <em>/**<em>*</em></em>
+<a name="59" href="#59">59</a>  <em>     * Determine if messages of priority "debug" will be logged.</em>
+<a name="60" href="#60">60</a>  <em>     * </em>
+<a name="61" href="#61">61</a>  <em>     * @return true if "debug" messages will be logged</em>
+<a name="62" href="#62">62</a>  <em>     */</em>
+<a name="63" href="#63">63</a>      <strong>public</strong> <strong>boolean</strong> isDebugEnabled() {
+<a name="64" href="#64">64</a>          <strong>return</strong> m_Logger.isDebugEnabled();
+<a name="65" href="#65">65</a>      }
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>      <em>/**<em>*</em></em>
+<a name="68" href="#68">68</a>  <em>     * Log a info message.</em>
+<a name="69" href="#69">69</a>  <em>     * </em>
+<a name="70" href="#70">70</a>  <em>     * @param message</em>
+<a name="71" href="#71">71</a>  <em>     *            the message</em>
+<a name="72" href="#72">72</a>  <em>     */</em>
+<a name="73" href="#73">73</a>      <strong>public</strong> <strong>void</strong> info(String message) {
+<a name="74" href="#74">74</a>          m_Logger.info(message);
+<a name="75" href="#75">75</a>      }
+<a name="76" href="#76">76</a>  
+<a name="77" href="#77">77</a>      <em>/**<em>*</em></em>
+<a name="78" href="#78">78</a>  <em>     * Log a info message.</em>
+<a name="79" href="#79">79</a>  <em>     * </em>
+<a name="80" href="#80">80</a>  <em>     * @param message</em>
+<a name="81" href="#81">81</a>  <em>     *            the message</em>
+<a name="82" href="#82">82</a>  <em>     * @param throwable</em>
+<a name="83" href="#83">83</a>  <em>     *            the throwable</em>
+<a name="84" href="#84">84</a>  <em>     */</em>
+<a name="85" href="#85">85</a>      <strong>public</strong> <strong>void</strong> info(String message, Throwable throwable) {
+<a name="86" href="#86">86</a>          m_Logger.info(message, throwable);
+<a name="87" href="#87">87</a>      }
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>      <em>/**<em>*</em></em>
+<a name="90" href="#90">90</a>  <em>     * Determine if messages of priority "info" will be logged.</em>
+<a name="91" href="#91">91</a>  <em>     * </em>
+<a name="92" href="#92">92</a>  <em>     * @return true if "info" messages will be logged</em>
+<a name="93" href="#93">93</a>  <em>     */</em>
+<a name="94" href="#94">94</a>      <strong>public</strong> <strong>boolean</strong> isInfoEnabled() {
+<a name="95" href="#95">95</a>          <strong>return</strong> m_Logger.isInfoEnabled();
+<a name="96" href="#96">96</a>      }
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>      <em>/**<em>*</em></em>
+<a name="99" href="#99">99</a>  <em>     * Log a warn message.</em>
+<a name="100" href="#100">100</a> <em>     * </em>
+<a name="101" href="#101">101</a> <em>     * @param message</em>
+<a name="102" href="#102">102</a> <em>     *            the message</em>
+<a name="103" href="#103">103</a> <em>     */</em>
+<a name="104" href="#104">104</a>     <strong>public</strong> <strong>void</strong> warn(String message) {
+<a name="105" href="#105">105</a>         m_Logger.warn(message);
+<a name="106" href="#106">106</a>     }
+<a name="107" href="#107">107</a> 
+<a name="108" href="#108">108</a>     <em>/**<em>*</em></em>
+<a name="109" href="#109">109</a> <em>     * Log a warn message.</em>
+<a name="110" href="#110">110</a> <em>     * </em>
+<a name="111" href="#111">111</a> <em>     * @param message</em>
+<a name="112" href="#112">112</a> <em>     *            the message</em>
+<a name="113" href="#113">113</a> <em>     * @param throwable</em>
+<a name="114" href="#114">114</a> <em>     *            the throwable</em>
+<a name="115" href="#115">115</a> <em>     */</em>
+<a name="116" href="#116">116</a>     <strong>public</strong> <strong>void</strong> warn(String message, Throwable throwable) {
+<a name="117" href="#117">117</a>         m_Logger.warn(message, throwable);
+<a name="118" href="#118">118</a>     }
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a>     <em>/**<em>*</em></em>
+<a name="121" href="#121">121</a> <em>     * Determine if messages of priority "warn" will be logged.</em>
+<a name="122" href="#122">122</a> <em>     * </em>
+<a name="123" href="#123">123</a> <em>     * @return true if "warn" messages will be logged</em>
+<a name="124" href="#124">124</a> <em>     */</em>
+<a name="125" href="#125">125</a>     <strong>public</strong> <strong>boolean</strong> isWarnEnabled() {
+<a name="126" href="#126">126</a>         <strong>return</strong> m_Logger.isEnabledFor(Level.WARN);
+<a name="127" href="#127">127</a>     }
+<a name="128" href="#128">128</a> 
+<a name="129" href="#129">129</a>     <em>/**<em>*</em></em>
+<a name="130" href="#130">130</a> <em>     * Log a error message.</em>
+<a name="131" href="#131">131</a> <em>     * </em>
+<a name="132" href="#132">132</a> <em>     * @param message</em>
+<a name="133" href="#133">133</a> <em>     *            the message</em>
+<a name="134" href="#134">134</a> <em>     */</em>
+<a name="135" href="#135">135</a>     <strong>public</strong> <strong>void</strong> error(String message) {
+<a name="136" href="#136">136</a>         m_Logger.error(message);
+<a name="137" href="#137">137</a>     }
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a>     <em>/**<em>*</em></em>
+<a name="140" href="#140">140</a> <em>     * Log a error message.</em>
+<a name="141" href="#141">141</a> <em>     * </em>
+<a name="142" href="#142">142</a> <em>     * @param message</em>
+<a name="143" href="#143">143</a> <em>     *            the message</em>
+<a name="144" href="#144">144</a> <em>     * @param throwable</em>
+<a name="145" href="#145">145</a> <em>     *            the throwable</em>
+<a name="146" href="#146">146</a> <em>     */</em>
+<a name="147" href="#147">147</a>     <strong>public</strong> <strong>void</strong> error(String message, Throwable throwable) {
+<a name="148" href="#148">148</a>         m_Logger.error(message, throwable);
+<a name="149" href="#149">149</a>     }
+<a name="150" href="#150">150</a> 
+<a name="151" href="#151">151</a>     <em>/**<em>*</em></em>
+<a name="152" href="#152">152</a> <em>     * Determine if messages of priority "error" will be logged.</em>
+<a name="153" href="#153">153</a> <em>     * </em>
+<a name="154" href="#154">154</a> <em>     * @return true if "error" messages will be logged</em>
+<a name="155" href="#155">155</a> <em>     */</em>
+<a name="156" href="#156">156</a>     <strong>public</strong> <strong>boolean</strong> isErrorEnabled() {
+<a name="157" href="#157">157</a>         <strong>return</strong> m_Logger.isEnabledFor(Level.ERROR);
+<a name="158" href="#158">158</a>     }
+<a name="159" href="#159">159</a> 
+<a name="160" href="#160">160</a>     <em>/**<em>*</em></em>
+<a name="161" href="#161">161</a> <em>     * Log a fatalError message.</em>
+<a name="162" href="#162">162</a> <em>     * </em>
+<a name="163" href="#163">163</a> <em>     * @param message</em>
+<a name="164" href="#164">164</a> <em>     *            the message</em>
+<a name="165" href="#165">165</a> <em>     */</em>
+<a name="166" href="#166">166</a>     <strong>public</strong> <strong>void</strong> fatalError(String message) {
+<a name="167" href="#167">167</a>         m_Logger.fatal(message);
+<a name="168" href="#168">168</a>     }
+<a name="169" href="#169">169</a> 
+<a name="170" href="#170">170</a>     <em>/**<em>*</em></em>
+<a name="171" href="#171">171</a> <em>     * Log a fatalError message.</em>
+<a name="172" href="#172">172</a> <em>     * </em>
+<a name="173" href="#173">173</a> <em>     * @param message</em>
+<a name="174" href="#174">174</a> <em>     *            the message</em>
+<a name="175" href="#175">175</a> <em>     * @param throwable</em>
+<a name="176" href="#176">176</a> <em>     *            the throwable</em>
+<a name="177" href="#177">177</a> <em>     */</em>
+<a name="178" href="#178">178</a>     <strong>public</strong> <strong>void</strong> fatalError(String message, Throwable throwable) {
+<a name="179" href="#179">179</a>         m_Logger.fatal(message, throwable);
+<a name="180" href="#180">180</a>     }
+<a name="181" href="#181">181</a> 
+<a name="182" href="#182">182</a>     <em>/**<em>*</em></em>
+<a name="183" href="#183">183</a> <em>     * Determine if messages of priority "fatalError" will be logged.</em>
+<a name="184" href="#184">184</a> <em>     * </em>
+<a name="185" href="#185">185</a> <em>     * @return true if "fatalError" messages will be logged</em>
+<a name="186" href="#186">186</a> <em>     */</em>
+<a name="187" href="#187">187</a>     <strong>public</strong> <strong>boolean</strong> isFatalErrorEnabled() {
+<a name="188" href="#188">188</a>         <strong>return</strong> m_Logger.isEnabledFor(Level.FATAL);
+<a name="189" href="#189">189</a>     }
+<a name="190" href="#190">190</a> 
+<a name="191" href="#191">191</a>     <em>/**<em>*</em></em>
+<a name="192" href="#192">192</a> <em>     * Create a new child logger. The name of the child logger is</em>
+<a name="193" href="#193">193</a> <em>     * [current-loggers-name].[passed-in-name] Throws</em>
+<a name="194" href="#194">194</a> <em>     * &lt;code>IllegalArgumentException&lt;/code> if name has an empty element name</em>
+<a name="195" href="#195">195</a> <em>     * </em>
+<a name="196" href="#196">196</a> <em>     * @param name</em>
+<a name="197" href="#197">197</a> <em>     *            the subname of this logger</em>
+<a name="198" href="#198">198</a> <em>     * @return the new logger</em>
+<a name="199" href="#199">199</a> <em>     */</em>
+<a name="200" href="#200">200</a>     <strong>public</strong> <a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> getChildLogger(String name) {
+<a name="201" href="#201">201</a>         String newName = m_Logger.getName() + <span class="string">"."</span> + name;
+<a name="202" href="#202">202</a>         org.apache.log4j.Logger childLog4JLogger = org.apache.log4j.Logger
+<a name="203" href="#203">203</a>                 .getLogger(newName);
+<a name="204" href="#204">204</a>         Log4JLogger child = <strong>new</strong> Log4JLogger(childLog4JLogger);
+<a name="205" href="#205">205</a>         <strong>return</strong> child;
+<a name="206" href="#206">206</a>     }
+<a name="207" href="#207">207</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/impl/SPFQuery.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/SPFQuery.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/SPFQuery.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/SPFQuery.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,220 @@
+<!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>SPFQuery xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/impl/SPFQuery.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.impl;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.commons.cli.CommandLine;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.commons.cli.CommandLineParser;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.commons.cli.OptionBuilder;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.commons.cli.Options;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.commons.cli.ParseException;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.commons.cli.PosixParser;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.james.jspf.SPF;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.james.jspf.SPF1Utils;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.james.jspf.SPFResult;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.log4j.ConsoleAppender;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.log4j.Level;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.log4j.Logger;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.log4j.SimpleLayout;
+<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> * This class is used for commandline usage of JSPF</em>
+<a name="38" href="#38">38</a>  <em> * </em>
+<a name="39" href="#39">39</a>  <em> */</em>
+<a name="40" href="#40">40</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/impl/SPFQuery.html">SPFQuery</a> {
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> PASS_RCODE = 0;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> FAIL_RCODE = 1;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> SOFTFAIL_RCODE = 2;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> NEUTRAL_RCODE = 3;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> TEMP_ERROR_RCODE = 4;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> PERM_ERROR_RCODE = 5;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> NONE_RCODE = 6;
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> <strong>int</strong> UNKNOWN_RCODE = 255;
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_IP = <span class="string">"ip"</span>;
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_SENDER = <span class="string">"sender"</span>;
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_HELO = <span class="string">"helo"</span>;
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_DEBUG = <span class="string">"debug"</span>;
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_VERBOSE = <span class="string">"verbose"</span>;
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_DEFAULT_EXP = <span class="string">"defaultexplanation"</span>;
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_BEST_GUESS = <span class="string">"usebestguess"</span>;
+<a name="71" href="#71">71</a>      
+<a name="72" href="#72">72</a>      <strong>private</strong> <strong>final</strong> <strong>static</strong> String CMD_TRUSTED_FORWARDER = <span class="string">"usetrusted"</span>;
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>      <strong>private</strong> <strong>static</strong> Logger logger = Logger.getRootLogger();
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>      <em>/**<em>*</em></em>
+<a name="77" href="#77">77</a>  <em>     * @param args</em>
+<a name="78" href="#78">78</a>  <em>     *            The commandline arguments to parse</em>
+<a name="79" href="#79">79</a>  <em>     */</em>
+<a name="80" href="#80">80</a>      <strong>public</strong> <strong>static</strong> <strong>void</strong> main(String[] args) {
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>          String ip = <strong>null</strong>;
+<a name="83" href="#83">83</a>          String sender = <strong>null</strong>;
+<a name="84" href="#84">84</a>          String helo = <strong>null</strong>;
+<a name="85" href="#85">85</a>          String defaultExplanation = <strong>null</strong>;
+<a name="86" href="#86">86</a>          <strong>boolean</strong> useBestGuess = false;
+<a name="87" href="#87">87</a>          <strong>boolean</strong> useTrustedForwarder = false;
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>          SimpleLayout layout = <strong>new</strong> SimpleLayout();
+<a name="90" href="#90">90</a>          ConsoleAppender consoleAppender = <strong>new</strong> ConsoleAppender(layout);
+<a name="91" href="#91">91</a>          logger.addAppender(consoleAppender);
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>          logger.setLevel(Level.ERROR);
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>          Options options = generateOptions();
+<a name="96" href="#96">96</a>          CommandLineParser parser = <strong>new</strong> PosixParser();
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>          <strong>try</strong> {
+<a name="99" href="#99">99</a>              CommandLine line = parser.parse(options, args);
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a>             ip = line.getOptionValue(CMD_IP);
+<a name="102" href="#102">102</a>             sender = line.getOptionValue(CMD_SENDER);
+<a name="103" href="#103">103</a>             helo = line.getOptionValue(CMD_HELO);
+<a name="104" href="#104">104</a>             defaultExplanation = line.getOptionValue(CMD_DEFAULT_EXP);
+<a name="105" href="#105">105</a>             useBestGuess = line.hasOption(CMD_BEST_GUESS);
+<a name="106" href="#106">106</a>             useTrustedForwarder = line.hasOption(CMD_TRUSTED_FORWARDER);
+<a name="107" href="#107">107</a>             <em class="comment">// check if all needed values was set</em>
+<a name="108" href="#108">108</a>             <strong>if</strong> (ip != <strong>null</strong> &amp;&amp; sender != <strong>null</strong> &amp;&amp; helo != <strong>null</strong>) {
+<a name="109" href="#109">109</a> 
+<a name="110" href="#110">110</a>                 <strong>if</strong> (line.hasOption(CMD_DEBUG))
+<a name="111" href="#111">111</a>                     logger.setLevel(Level.DEBUG);
+<a name="112" href="#112">112</a>                 <strong>if</strong> (line.hasOption(CMD_VERBOSE))
+<a name="113" href="#113">113</a>                     logger.setLevel(Level.TRACE);
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a>                 <a href="../../../../../org/apache/james/jspf/SPF.html">SPF</a> spf = <strong>new</strong> <a href="../../../../../org/apache/james/jspf/impl/DefaultSPF.html">DefaultSPF</a>(<strong>new</strong> Log4JLogger(logger));
+<a name="116" href="#116">116</a> 
+<a name="117" href="#117">117</a>                 <em class="comment">// Check if we should set a costum default explanation</em>
+<a name="118" href="#118">118</a>                 <strong>if</strong> (defaultExplanation != <strong>null</strong>) {
+<a name="119" href="#119">119</a>                     spf.setDefaultExplanation(defaultExplanation);
+<a name="120" href="#120">120</a>                 }
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a>                 <em class="comment">// Check if we should use best guess</em>
+<a name="123" href="#123">123</a>                 <strong>if</strong> (useBestGuess == <strong>true</strong>) {
+<a name="124" href="#124">124</a>                     spf.setUseBestGuess(<strong>true</strong>);
+<a name="125" href="#125">125</a>                 }
+<a name="126" href="#126">126</a>                 
+<a name="127" href="#127">127</a>                 <strong>if</strong> (useTrustedForwarder == <strong>true</strong>) {
+<a name="128" href="#128">128</a>                     spf.setUseTrustedForwarder(<strong>true</strong>);
+<a name="129" href="#129">129</a>                 }
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a>                 <a href="../../../../../org/apache/james/jspf/SPFResult.html">SPFResult</a> result = spf.checkSPF(ip, sender, helo);
+<a name="132" href="#132">132</a>                 System.out.println(result.getResult());
+<a name="133" href="#133">133</a>                 System.out.println(result.getHeader());
+<a name="134" href="#134">134</a>                 System.exit(getReturnCode(result.getResult()));
+<a name="135" href="#135">135</a> 
+<a name="136" href="#136">136</a>             } <strong>else</strong> {
+<a name="137" href="#137">137</a>                 usage();
+<a name="138" href="#138">138</a>             }
+<a name="139" href="#139">139</a>         } <strong>catch</strong> (ParseException e) {
+<a name="140" href="#140">140</a>             usage();
+<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>     <em>/**<em>*</em></em>
+<a name="145" href="#145">145</a> <em>     * Return the generated Options</em>
+<a name="146" href="#146">146</a> <em>     * </em>
+<a name="147" href="#147">147</a> <em>     * @return options</em>
+<a name="148" href="#148">148</a> <em>     */</em>
+<a name="149" href="#149">149</a>     <strong>private</strong> <strong>static</strong> Options generateOptions() {
+<a name="150" href="#150">150</a>         Options options = <strong>new</strong> Options();
+<a name="151" href="#151">151</a>         options.addOption(OptionBuilder.withLongOpt(CMD_IP).withValueSeparator(
+<a name="152" href="#152">152</a>                 '=').hasArg().create());
+<a name="153" href="#153">153</a>         options.addOption(OptionBuilder.withLongOpt(CMD_SENDER)
+<a name="154" href="#154">154</a>                 .withValueSeparator('=').hasArg().create());
+<a name="155" href="#155">155</a>         options.addOption(OptionBuilder.withLongOpt(CMD_HELO)
+<a name="156" href="#156">156</a>                 .withValueSeparator('=').hasArg().create());
+<a name="157" href="#157">157</a>         options.addOption(OptionBuilder.withLongOpt(CMD_DEFAULT_EXP)
+<a name="158" href="#158">158</a>                 .withValueSeparator('=').hasArg().create());
+<a name="159" href="#159">159</a>         options.addOption(OptionBuilder.withLongOpt(CMD_BEST_GUESS).create());
+<a name="160" href="#160">160</a>         options.addOption(OptionBuilder.withLongOpt(CMD_TRUSTED_FORWARDER).create());
+<a name="161" href="#161">161</a>         options.addOption(OptionBuilder.withLongOpt(CMD_DEBUG).create());
+<a name="162" href="#162">162</a>         options.addOption(OptionBuilder.withLongOpt(CMD_VERBOSE).create());
+<a name="163" href="#163">163</a>         <strong>return</strong> options;
+<a name="164" href="#164">164</a>     }
+<a name="165" href="#165">165</a> 
+<a name="166" href="#166">166</a>     <em>/**<em>*</em></em>
+<a name="167" href="#167">167</a> <em>     * Print out the usage</em>
+<a name="168" href="#168">168</a> <em>     */</em>
+<a name="169" href="#169">169</a>     <strong>private</strong> <strong>static</strong> <strong>void</strong> usage() {
+<a name="170" href="#170">170</a>         <em class="comment">// TODO: Use HelpFormatter for printing usage</em>
+<a name="171" href="#171">171</a>         System.out.println(<span class="string">"Usage: java -jar jspf-x.jar --"</span> + CMD_IP
+<a name="172" href="#172">172</a>                 + <span class="string">"=192.168.100.1 --"</span> + CMD_SENDER + <span class="string">"=postmaster@foo.bar --"</span>
+<a name="173" href="#173">173</a>                 + CMD_HELO + <span class="string">"=foo.bar [--"</span> + CMD_DEFAULT_EXP
+<a name="174" href="#174">174</a>                 + <span class="string">"=\&quot;explanation String\&quot;] [--"</span> + CMD_BEST_GUESS + <span class="string">"] [--"</span>+ CMD_TRUSTED_FORWARDER +<span class="string">"]"</span>
+<a name="175" href="#175">175</a>                 + CMD_DEBUG + <span class="string">"] [--"</span> + CMD_VERBOSE + <span class="string">"]"</span>);
+<a name="176" href="#176">176</a>         System.exit(UNKNOWN_RCODE);
+<a name="177" href="#177">177</a>     }
+<a name="178" href="#178">178</a> 
+<a name="179" href="#179">179</a>     <em>/**<em>*</em></em>
+<a name="180" href="#180">180</a> <em>     * Return the return code for the result</em>
+<a name="181" href="#181">181</a> <em>     * </em>
+<a name="182" href="#182">182</a> <em>     * @param result</em>
+<a name="183" href="#183">183</a> <em>     *            The result</em>
+<a name="184" href="#184">184</a> <em>     * @return returnCode</em>
+<a name="185" href="#185">185</a> <em>     */</em>
+<a name="186" href="#186">186</a>     <strong>private</strong> <strong>static</strong> <strong>int</strong> getReturnCode(String result) {
+<a name="187" href="#187">187</a> 
+<a name="188" href="#188">188</a>         <strong>if</strong> (result.equals(SPF1Utils.PASS_CONV)) {
+<a name="189" href="#189">189</a>             <strong>return</strong> PASS_RCODE;
+<a name="190" href="#190">190</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.FAIL_CONV)) {
+<a name="191" href="#191">191</a>             <strong>return</strong> FAIL_RCODE;
+<a name="192" href="#192">192</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.SOFTFAIL_CONV)) {
+<a name="193" href="#193">193</a>             <strong>return</strong> SOFTFAIL_RCODE;
+<a name="194" href="#194">194</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.NEUTRAL_CONV)) {
+<a name="195" href="#195">195</a>             <strong>return</strong> NEUTRAL_RCODE;
+<a name="196" href="#196">196</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.TEMP_ERROR_CONV)) {
+<a name="197" href="#197">197</a>             <strong>return</strong> TEMP_ERROR_RCODE;
+<a name="198" href="#198">198</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.PERM_ERROR_CONV)) {
+<a name="199" href="#199">199</a>             <strong>return</strong> PERM_ERROR_RCODE;
+<a name="200" href="#200">200</a>         } <strong>else</strong> <strong>if</strong> (result.equals(SPF1Utils.NONE_CONV)) {
+<a name="201" href="#201">201</a>             <strong>return</strong> NONE_RCODE;
+<a name="202" href="#202">202</a>         }
+<a name="203" href="#203">203</a> 
+<a name="204" href="#204">204</a>         <strong>return</strong> UNKNOWN_RCODE;
+<a name="205" href="#205">205</a>     }
+<a name="206" href="#206">206</a> 
+<a name="207" href="#207">207</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/impl/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-frame.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-frame.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-frame.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,33 @@
+
+<!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.impl</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.impl</a>
+        </h3>
+
+        <h3>Classes</h3>
+
+        <ul>
+                        <li>
+                <a href="DNSServiceXBillImpl.html" target="classFrame">DNSServiceXBillImpl</a>
+            </li>
+                        <li>
+                <a href="DefaultSPF.html" target="classFrame">DefaultSPF</a>
+            </li>
+                        <li>
+                <a href="Log4JLogger.html" target="classFrame">Log4JLogger</a>
+            </li>
+                        <li>
+                <a href="SPFQuery.html" target="classFrame">SPFQuery</a>
+            </li>
+                    </ul>
+
+    </body>
+</html>

Added: james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-summary.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-summary.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/impl/package-summary.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,82 @@
+
+<!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.impl</h2>
+
+        <table class="summary">
+            <thead>
+                <tr>
+                    <th>Class Summary</th>
+                </tr>
+            </thead>
+            <tbody>
+                                <tr>
+                    <td>
+                        <a href="DNSServiceXBillImpl.html" target="classFrame">DNSServiceXBillImpl</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="DefaultSPF.html" target="classFrame">DefaultSPF</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="Log4JLogger.html" target="classFrame">Log4JLogger</a>
+                    </td>
+                </tr>
+                                <tr>
+                    <td>
+                        <a href="SPFQuery.html" target="classFrame">SPFQuery</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/policies/AbstractNestedPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/AbstractNestedPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/AbstractNestedPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/AbstractNestedPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,77 @@
+<!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>AbstractNestedPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/AbstractNestedPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>abstract</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</a> implements NestedPolicy, <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> {
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>      <strong>private</strong> <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> childPolicy;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>      <strong>public</strong> <strong>void</strong> setChildPolicy(<a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> children) {
+<a name="33" href="#33">33</a>          <strong>if</strong> (children == <strong>null</strong>) {
+<a name="34" href="#34">34</a>              <strong>throw</strong> <strong>new</strong> IllegalStateException(<span class="string">"This policy needs a valid child policy: "</span>+<strong>this</strong>.getClass().toString());
+<a name="35" href="#35">35</a>          }
+<a name="36" href="#36">36</a>          <strong>this</strong>.childPolicy = children;
+<a name="37" href="#37">37</a>      }
+<a name="38" href="#38">38</a>      
+<a name="39" href="#39">39</a>      <strong>public</strong> SPF1Record getSPFRecord(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="40" href="#40">40</a>          SPF1Record res = getSPFRecordOverride(currentDomain);
+<a name="41" href="#41">41</a>          <strong>if</strong> (res == <strong>null</strong> &amp;&amp; childPolicy != <strong>null</strong>) {
+<a name="42" href="#42">42</a>              res = childPolicy.getSPFRecord(currentDomain);
+<a name="43" href="#43">43</a>              <strong>if</strong> (res == <strong>null</strong>) {
+<a name="44" href="#44">44</a>                  res = getSPFRecordFallback(currentDomain);
+<a name="45" href="#45">45</a>              } <strong>else</strong> {
+<a name="46" href="#46">46</a>                  res = getSPFRecordPostFilter(currentDomain, res);
+<a name="47" href="#47">47</a>              }
+<a name="48" href="#48">48</a>          }
+<a name="49" href="#49">49</a>          <strong>return</strong> res;
+<a name="50" href="#50">50</a>      }
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>      <strong>protected</strong> SPF1Record getSPFRecordPostFilter(String currentDomain, SPF1Record res) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="53" href="#53">53</a>          <strong>return</strong> res;
+<a name="54" href="#54">54</a>      }
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>      <strong>protected</strong> SPF1Record getSPFRecordFallback(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="57" href="#57">57</a>          <strong>return</strong> <strong>null</strong>;
+<a name="58" href="#58">58</a>      }
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>      <strong>protected</strong> SPF1Record getSPFRecordOverride(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="61" href="#61">61</a>          <strong>return</strong> <strong>null</strong>;
+<a name="62" href="#62">62</a>      }
+<a name="63" href="#63">63</a>      
+<a name="64" href="#64">64</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/ChainPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ChainPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ChainPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ChainPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,77 @@
+<!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>ChainPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/ChainPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <strong>import</strong> java.util.Iterator;
+<a name="29" href="#29">29</a>  <strong>import</strong> java.util.List;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em>/**<em>*</em></em>
+<a name="32" href="#32">32</a>  <em> * Composed policy: get a list of NestedPolicies and chain them</em>
+<a name="33" href="#33">33</a>  <em> * in a single policy</em>
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/ChainPolicy.html">ChainPolicy</a> implements <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> {
+<a name="36" href="#36">36</a>      
+<a name="37" href="#37">37</a>      <strong>private</strong> <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> policy;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>      <em>/**<em>*</em></em>
+<a name="40" href="#40">40</a>  <em>     * Create a new ChainPolicy</em>
+<a name="41" href="#41">41</a>  <em>     * @param policies an array of Polcy and NestedPolicy objects</em>
+<a name="42" href="#42">42</a>  <em>     */</em>
+<a name="43" href="#43">43</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/policies/ChainPolicy.html">ChainPolicy</a>(List policies) {
+<a name="44" href="#44">44</a>          policy = <strong>null</strong>;
+<a name="45" href="#45">45</a>          Iterator i = policies.iterator();
+<a name="46" href="#46">46</a>          <strong>while</strong> (i.hasNext()) {
+<a name="47" href="#47">47</a>              <a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> newP = (Policy) i.next();
+<a name="48" href="#48">48</a>              <strong>if</strong> (newP instanceof NestedPolicy) {
+<a name="49" href="#49">49</a>                  ((<a href="../../../../../org/apache/james/jspf/policies/NestedPolicy.html">NestedPolicy</a>) newP).setChildPolicy(policy);
+<a name="50" href="#50">50</a>              }
+<a name="51" href="#51">51</a>              policy = newP;
+<a name="52" href="#52">52</a>          }
+<a name="53" href="#53">53</a>      }
+<a name="54" href="#54">54</a>      
+<a name="55" href="#55">55</a>      <em>/**<em>*</em></em>
+<a name="56" href="#56">56</a>  <em>     * @see org.apache.james.jspf.policies.Policy#getSPFRecord(java.lang.String)</em>
+<a name="57" href="#57">57</a>  <em>     */</em>
+<a name="58" href="#58">58</a>      <strong>public</strong> SPF1Record getSPFRecord(String currentDomain)
+<a name="59" href="#59">59</a>              throws PermErrorException, TempErrorException, NoneException,
+<a name="60" href="#60">60</a>              <a href="../../../../../org/apache/james/jspf/exceptions/NeutralException.html">NeutralException</a> {
+<a name="61" href="#61">61</a>          <strong>return</strong> policy.getSPFRecord(currentDomain);
+<a name="62" href="#62">62</a>      }
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</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/InitialChecksPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/InitialChecksPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/InitialChecksPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/InitialChecksPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,63 @@
+<!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>InitialChecksPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/InitialChecksPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * Run the checks on the validity of the domain</em>
+<a name="30" href="#30">30</a>  <em> * This is an override filter to be executed as the first </em>
+<a name="31" href="#31">31</a>  <em> * so it should be added as the last filter.</em>
+<a name="32" href="#32">32</a>  <em> */</em>
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>final</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/InitialChecksPolicy.html">InitialChecksPolicy</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</a> {
+<a name="34" href="#34">34</a>      
+<a name="35" href="#35">35</a>      <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#getSPFRecordOverride(java.lang.String)</em>
+<a name="37" href="#37">37</a>  <em>     */</em>
+<a name="38" href="#38">38</a>      <strong>protected</strong> SPF1Record getSPFRecordOverride(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="39" href="#39">39</a>          <em class="comment">// Initial checks (spec 4.3)</em>
+<a name="40" href="#40">40</a>          <strong>if</strong> (currentDomain != <strong>null</strong>) {
+<a name="41" href="#41">41</a>              String[] labels = currentDomain.split(<span class="string">"&#47;&#47;."</span>);
+<a name="42" href="#42">42</a>              <strong>for</strong> (<strong>int</strong> i = 0; i &lt; labels.length; i++) {
+<a name="43" href="#43">43</a>                  <strong>if</strong> (labels[i] != <strong>null</strong> &amp;&amp; labels[i].length() > 63) {
+<a name="44" href="#44">44</a>                      <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/NoneException.html">NoneException</a>(<span class="string">"Domain "</span>+currentDomain+<span class="string">" is malformed (label longer than 63 characters)"</span>);
+<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>          <strong>return</strong> <strong>null</strong>;
+<a name="49" href="#49">49</a>      }
+<a name="50" href="#50">50</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/NestedPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NestedPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NestedPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NestedPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,44 @@
+<!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>NestedPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/NestedPolicy.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>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</a>  <em> * Interface used to set the next policy in the chain</em>
+<a name="24" href="#24">24</a>  <em> */</em>
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/james/jspf/policies/NestedPolicy.html">NestedPolicy</a> {
+<a name="26" href="#26">26</a>      <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a>  <em>     * Set a new children for this Policy</em>
+<a name="28" href="#28">28</a>  <em>     * @param children the children policy</em>
+<a name="29" href="#29">29</a>  <em>     */</em>
+<a name="30" href="#30">30</a>      <strong>public</strong> <strong>void</strong> setChildPolicy(<a href="../../../../../org/apache/james/jspf/policies/Policy.html">Policy</a> children);
+<a name="31" href="#31">31</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/NeutralIfNotMatchPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NeutralIfNotMatchPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NeutralIfNotMatchPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NeutralIfNotMatchPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,71 @@
+<!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>NeutralIfNotMatchPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/NeutralIfNotMatchPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Constants;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.core.SPF1Data;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.core.SPFChecker;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em>/**<em>*</em></em>
+<a name="32" href="#32">32</a>  <em> * Sets the result to NEUTRAL if no directive is found </em>
+<a name="33" href="#33">33</a>  <em> */</em>
+<a name="34" href="#34">34</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/NeutralIfNotMatchPolicy.html">NeutralIfNotMatchPolicy</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</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>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#getSPFRecordPostFilter(java.lang.String, org.apache.james.jspf.core.SPF1Record)</em>
+<a name="38" href="#38">38</a>  <em>     */</em>
+<a name="39" href="#39">39</a>      <strong>protected</strong> SPF1Record getSPFRecordPostFilter(String currentDomain, SPF1Record spfRecord) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="40" href="#40">40</a>          <em class="comment">// Set the result to NEUTRAL if at least a directive is present and it didn't match</em>
+<a name="41" href="#41">41</a>          <em class="comment">// Maybe we should simply append a "?all" at the end, as modifier</em>
+<a name="42" href="#42">42</a>          <strong>if</strong> (spfRecord.getDirectives().size() > 0) {
+<a name="43" href="#43">43</a>              spfRecord.getModifiers().add(<strong>new</strong> SPFChecker() {
+<a name="44" href="#44">44</a>                  <strong>public</strong> <strong>void</strong> checkSPF(SPF1Data spfData) throws PermErrorException, NoneException, TempErrorException, NeutralException {
+<a name="45" href="#45">45</a>                      <em class="comment">// If no match was found set the result to neutral</em>
+<a name="46" href="#46">46</a>                      <strong>if</strong> (spfData.getCurrentResult() == <strong>null</strong>) {
+<a name="47" href="#47">47</a>                          spfData.setCurrentResult(SPF1Constants.NEUTRAL);
+<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>                  <strong>public</strong> String toString() {
+<a name="52" href="#52">52</a>                      <strong>return</strong> <span class="string">"defaultresult"</span>;
+<a name="53" href="#53">53</a>                  }
+<a name="54" href="#54">54</a>              });
+<a name="55" href="#55">55</a>          }
+<a name="56" href="#56">56</a>          <strong>return</strong> spfRecord;
+<a name="57" href="#57">57</a>      }
+<a name="58" href="#58">58</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/NoSPFRecordFoundPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NoSPFRecordFoundPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NoSPFRecordFoundPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/NoSPFRecordFoundPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,51 @@
+<!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>NoSPFRecordFoundPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/NoSPFRecordFoundPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * Throws a NoneException if no record has been found</em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/NoSPFRecordFoundPolicy.html">NoSPFRecordFoundPolicy</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</a> {
+<a name="32" href="#32">32</a>      <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#getSPFRecordFallback(java.lang.String)</em>
+<a name="34" href="#34">34</a>  <em>     */</em>
+<a name="35" href="#35">35</a>      <strong>protected</strong> SPF1Record getSPFRecordFallback(String currentDomain) throws PermErrorException, TempErrorException, NoneException, NeutralException {
+<a name="36" href="#36">36</a>          <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/NoneException.html">NoneException</a>(<span class="string">"No SPF record found for host: "</span> + currentDomain);
+<a name="37" href="#37">37</a>      }
+<a name="38" href="#38">38</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/ParseRecordPolicy.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ParseRecordPolicy.html?view=auto&rev=524442
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ParseRecordPolicy.html (added)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/policies/ParseRecordPolicy.html Sat Mar 31 08:51:38 2007
@@ -0,0 +1,59 @@
+<!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>ParseRecordPolicy xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/apache/james/jspf/policies/ParseRecordPolicy.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>  <strong>import</strong> org.apache.james.jspf.core.SPF1Record;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.james.jspf.core.SPFRecordParser;
+<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>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * Parse the record</em>
+<a name="30" href="#30">30</a>  <em> */</em>
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/policies/ParseRecordPolicy.html">ParseRecordPolicy</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/policies/AbstractNestedPolicy.html">AbstractNestedPolicy</a> {
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>      <strong>private</strong> <a href="../../../../../org/apache/james/jspf/core/SPFRecordParser.html">SPFRecordParser</a> parser;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>      <strong>public</strong> <a href="../../../../../org/apache/james/jspf/policies/ParseRecordPolicy.html">ParseRecordPolicy</a>(<a href="../../../../../org/apache/james/jspf/core/SPFRecordParser.html">SPFRecordParser</a> parser) {
+<a name="36" href="#36">36</a>          <strong>this</strong>.parser = parser;
+<a name="37" href="#37">37</a>      }
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>      <em>/**<em>*</em></em>
+<a name="40" href="#40">40</a>  <em>     * @see org.apache.james.jspf.policies.AbstractNestedPolicy#getSPFRecordPostFilter(java.lang.String, org.apache.james.jspf.core.SPF1Record)</em>
+<a name="41" href="#41">41</a>  <em>     */</em>
+<a name="42" href="#42">42</a>      <strong>protected</strong> SPF1Record getSPFRecordPostFilter(String currentDomain, SPF1Record spfRecord) throws PermErrorException, NoneException, NeutralException {
+<a name="43" href="#43">43</a>          <em class="comment">// parse the record</em>
+<a name="44" href="#44">44</a>          <strong>return</strong> parser.parse(spfRecord.getRecord());
+<a name="45" href="#45">45</a>      }
+<a name="46" href="#46">46</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+