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 2006/09/24 17:35:10 UTC
svn commit: r449415 [18/18] - in /james/site/trunk/www/jspf: ./ apidocs/
apidocs/org/apache/james/jspf/ apidocs/org/apache/james/jspf/class-use/
apidocs/org/apache/james/jspf/core/
apidocs/org/apache/james/jspf/core/class-use/ apidocs/org/apache/james/...
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/RedirectModifier.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/RedirectModifier.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/RedirectModifier.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/RedirectModifier.html Sun Sep 24 08:35:04 2006
@@ -33,95 +33,99 @@
<a name="24" href="#24">24</a> <strong>import</strong> org.apache.james.jspf.core.LogEnabled;
<a name="25" href="#25">25</a> <strong>import</strong> org.apache.james.jspf.core.Logger;
<a name="26" href="#26">26</a> <strong>import</strong> org.apache.james.jspf.core.SPF1Data;
-<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> <strong>import</strong> org.apache.james.jspf.macro.MacroExpand;
-<a name="31" href="#31">31</a> <strong>import</strong> org.apache.james.jspf.parser.SPF1Parser;
-<a name="32" href="#32">32</a>
-<a name="33" href="#33">33</a> <em>/**<em>*</em></em>
-<a name="34" href="#34">34</a> <em> * This class represent the redirect modifier</em>
-<a name="35" href="#35">35</a> <em> * </em>
-<a name="36" href="#36">36</a> <em> */</em>
-<a name="37" href="#37">37</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/terms/RedirectModifier.html">RedirectModifier</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/terms/GenericModifier.html">GenericModifier</a> implements <a href="../../../../../org/apache/james/jspf/core/LogEnabled.html">LogEnabled</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> * ABNF: redirect = "redirect" "=" domain-spec</em>
-<a name="41" href="#41">41</a> <em> */</em>
-<a name="42" href="#42">42</a> <strong>public</strong> <strong>static</strong> <strong>final</strong> String REGEX = <span class="string">"[rR][eE][dD][iI][rR][eE][cC][tT]"</span>
-<a name="43" href="#43">43</a> + <span class="string">"//="</span> + SPF1Parser.DOMAIN_SPEC_REGEX;
-<a name="44" href="#44">44</a>
-<a name="45" href="#45">45</a> <strong>private</strong> <a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> log;
-<a name="46" href="#46">46</a>
-<a name="47" href="#47">47</a> <em>/**<em>*</em></em>
-<a name="48" href="#48">48</a> <em> * Set the host which should be used for redirection and set it in SPF1Data</em>
-<a name="49" href="#49">49</a> <em> * so it can be accessed easy later if needed</em>
-<a name="50" href="#50">50</a> <em> * </em>
-<a name="51" href="#51">51</a> <em> * @param spfData</em>
-<a name="52" href="#52">52</a> <em> * The SPF1Data which should used</em>
-<a name="53" href="#53">53</a> <em> * @return host The host to which we shuld redirect</em>
-<a name="54" href="#54">54</a> <em> * @throws PermErrorException</em>
-<a name="55" href="#55">55</a> <em> * if an error is in the redirect modifier</em>
-<a name="56" href="#56">56</a> <em> * @throws TempErrorException</em>
-<a name="57" href="#57">57</a> <em> * if an DNS problem accurred</em>
-<a name="58" href="#58">58</a> <em> */</em>
-<a name="59" href="#59">59</a> <strong>public</strong> String run(SPF1Data spfData) throws PermErrorException,
-<a name="60" href="#60">60</a> <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a> {
-<a name="61" href="#61">61</a> <em class="comment">// the redirect modifier is used only when we had no previous matches</em>
-<a name="62" href="#62">62</a> <strong>if</strong> (!spfData.isMatch()) {
-<a name="63" href="#63">63</a>
-<a name="64" href="#64">64</a> String host = getHost();
-<a name="65" href="#65">65</a>
-<a name="66" href="#66">66</a> <em class="comment">// update currentDepth</em>
-<a name="67" href="#67">67</a> spfData.setCurrentDepth(spfData.getCurrentDepth() + 1);
-<a name="68" href="#68">68</a>
-<a name="69" href="#69">69</a> <strong>try</strong> {
-<a name="70" href="#70">70</a> host = <strong>new</strong> <a href="../../../../../org/apache/james/jspf/macro/MacroExpand.html">MacroExpand</a>(spfData, log).expandDomain(host);
-<a name="71" href="#71">71</a> } <strong>catch</strong> (Exception e) {
-<a name="72" href="#72">72</a> <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(<span class="string">"Error in redirect modifier: "</span>
-<a name="73" href="#73">73</a> + host);
-<a name="74" href="#74">74</a> }
-<a name="75" href="#75">75</a>
-<a name="76" href="#76">76</a> spfData.setCurrentDomain(host);
-<a name="77" href="#77">77</a>
-<a name="78" href="#78">78</a> String res = <strong>null</strong>;
-<a name="79" href="#79">79</a> <strong>try</strong> {
-<a name="80" href="#80">80</a> res = <strong>new</strong> <a href="../../../../../org/apache/james/jspf/SPF.html">SPF</a>(spfData.getDnsProbe(),log).checkSPF(spfData).getResultChar();
-<a name="81" href="#81">81</a>
-<a name="82" href="#82">82</a>
-<a name="83" href="#83">83</a> } <strong>catch</strong> (NoneException e) {
-<a name="84" href="#84">84</a> <em class="comment">// no spf record assigned to the redirect domain</em>
-<a name="85" href="#85">85</a> <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(
-<a name="86" href="#86">86</a> <span class="string">"included checkSPF returned NoneException"</span>);
-<a name="87" href="#87">87</a> } <strong>finally</strong> {
-<a name="88" href="#88">88</a> <em class="comment">//After the redirect we should not use the explanation from the orginal record</em>
-<a name="89" href="#89">89</a> spfData.setIgnoreExplanation(<strong>true</strong>);
-<a name="90" href="#90">90</a> }
-<a name="91" href="#91">91</a>
-<a name="92" href="#92">92</a> <strong>return</strong> res;
-<a name="93" href="#93">93</a>
-<a name="94" href="#94">94</a> } <strong>else</strong> {
-<a name="95" href="#95">95</a> <em class="comment">// return null if we should not use the redirect at all</em>
-<a name="96" href="#96">96</a> <strong>return</strong> <strong>null</strong>;
-<a name="97" href="#97">97</a> }
-<a name="98" href="#98">98</a> }
-<a name="99" href="#99">99</a>
-<a name="100" href="#100">100</a> <em>/**<em>*</em></em>
-<a name="101" href="#101">101</a> <em> * @see org.apache.james.jspf.core.Modifier#enforceSingleInstance()</em>
-<a name="102" href="#102">102</a> <em> */</em>
-<a name="103" href="#103">103</a> <strong>public</strong> <strong>boolean</strong> enforceSingleInstance() {
-<a name="104" href="#104">104</a> <strong>return</strong> <strong>true</strong>;
-<a name="105" href="#105">105</a> }
-<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> * @see org.apache.james.jspf.core.LogEnabled#enableLogging(org.apache.james.jspf.core.Logger)</em>
-<a name="110" href="#110">110</a> <em> */</em>
-<a name="111" href="#111">111</a> <strong>public</strong> <strong>void</strong> enableLogging(<a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> logger) {
-<a name="112" href="#112">112</a> <strong>this</strong>.log = logger;
-<a name="113" href="#113">113</a> }
-<a name="114" href="#114">114</a>
-<a name="115" href="#115">115</a> }
+<a name="27" href="#27">27</a> <strong>import</strong> org.apache.james.jspf.exceptions.NeutralException;
+<a name="28" href="#28">28</a> <strong>import</strong> org.apache.james.jspf.exceptions.NoneException;
+<a name="29" href="#29">29</a> <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException;
+<a name="30" href="#30">30</a> <strong>import</strong> org.apache.james.jspf.exceptions.TempErrorException;
+<a name="31" href="#31">31</a> <strong>import</strong> org.apache.james.jspf.macro.MacroExpand;
+<a name="32" href="#32">32</a> <strong>import</strong> org.apache.james.jspf.parser.SPF1Parser;
+<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> * This class represent the redirect modifier</em>
+<a name="36" href="#36">36</a> <em> * </em>
+<a name="37" href="#37">37</a> <em> */</em>
+<a name="38" href="#38">38</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/terms/RedirectModifier.html">RedirectModifier</a> <strong>extends</strong> <a href="../../../../../org/apache/james/jspf/terms/GenericModifier.html">GenericModifier</a> implements <a href="../../../../../org/apache/james/jspf/core/LogEnabled.html">LogEnabled</a> {
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <em>/**<em>*</em></em>
+<a name="41" href="#41">41</a> <em> * ABNF: redirect = "redirect" "=" domain-spec</em>
+<a name="42" href="#42">42</a> <em> */</em>
+<a name="43" href="#43">43</a> <strong>public</strong> <strong>static</strong> <strong>final</strong> String REGEX = <span class="string">"[rR][eE][dD][iI][rR][eE][cC][tT]"</span>
+<a name="44" href="#44">44</a> + <span class="string">"//="</span> + SPF1Parser.DOMAIN_SPEC_REGEX;
+<a name="45" href="#45">45</a>
+<a name="46" href="#46">46</a> <strong>private</strong> <a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> log;
+<a name="47" href="#47">47</a>
+<a name="48" href="#48">48</a> <em>/**<em>*</em></em>
+<a name="49" href="#49">49</a> <em> * Set the host which should be used for redirection and set it in SPF1Data</em>
+<a name="50" href="#50">50</a> <em> * so it can be accessed easy later if needed</em>
+<a name="51" href="#51">51</a> <em> * </em>
+<a name="52" href="#52">52</a> <em> * @param spfData</em>
+<a name="53" href="#53">53</a> <em> * The SPF1Data which should used</em>
+<a name="54" href="#54">54</a> <em> * @return host The host to which we shuld redirect</em>
+<a name="55" href="#55">55</a> <em> * @throws PermErrorException</em>
+<a name="56" href="#56">56</a> <em> * if an error is in the redirect modifier</em>
+<a name="57" href="#57">57</a> <em> * @throws TempErrorException</em>
+<a name="58" href="#58">58</a> <em> * if an DNS problem accurred</em>
+<a name="59" href="#59">59</a> <em> */</em>
+<a name="60" href="#60">60</a> <strong>public</strong> String run(SPF1Data spfData) throws PermErrorException,
+<a name="61" href="#61">61</a> <a href="../../../../../org/apache/james/jspf/exceptions/TempErrorException.html">TempErrorException</a> {
+<a name="62" href="#62">62</a> <em class="comment">// the redirect modifier is used only when we had no previous matches</em>
+<a name="63" href="#63">63</a> <strong>if</strong> (!spfData.isMatch()) {
+<a name="64" href="#64">64</a>
+<a name="65" href="#65">65</a> String host = getHost();
+<a name="66" href="#66">66</a>
+<a name="67" href="#67">67</a> <em class="comment">// update currentDepth</em>
+<a name="68" href="#68">68</a> spfData.setCurrentDepth(spfData.getCurrentDepth() + 1);
+<a name="69" href="#69">69</a>
+<a name="70" href="#70">70</a> <strong>try</strong> {
+<a name="71" href="#71">71</a> host = <strong>new</strong> <a href="../../../../../org/apache/james/jspf/macro/MacroExpand.html">MacroExpand</a>(spfData, log).expandDomain(host);
+<a name="72" href="#72">72</a> } <strong>catch</strong> (Exception e) {
+<a name="73" href="#73">73</a> <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(<span class="string">"Error in redirect modifier: "</span>
+<a name="74" href="#74">74</a> + host);
+<a name="75" href="#75">75</a> }
+<a name="76" href="#76">76</a>
+<a name="77" href="#77">77</a> spfData.setCurrentDomain(host);
+<a name="78" href="#78">78</a>
+<a name="79" href="#79">79</a> String res = <strong>null</strong>;
+<a name="80" href="#80">80</a> <strong>try</strong> {
+<a name="81" href="#81">81</a> res = <strong>new</strong> <a href="../../../../../org/apache/james/jspf/SPF.html">SPF</a>(spfData.getDnsProbe(),log).checkSPF(spfData).getResultChar();
+<a name="82" href="#82">82</a>
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a> } <strong>catch</strong> (NoneException e) {
+<a name="85" href="#85">85</a> <em class="comment">// no spf record assigned to the redirect domain</em>
+<a name="86" href="#86">86</a> <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(
+<a name="87" href="#87">87</a> <span class="string">"included checkSPF returned NoneException"</span>);
+<a name="88" href="#88">88</a> } <strong>catch</strong> (NeutralException e) {
+<a name="89" href="#89">89</a> <strong>throw</strong> <strong>new</strong> <a href="../../../../../org/apache/james/jspf/exceptions/PermErrorException.html">PermErrorException</a>(<span class="string">"included checkSPF returned NeutralException"</span>);
+<a name="90" href="#90">90</a>
+<a name="91" href="#91">91</a> } <strong>finally</strong> {
+<a name="92" href="#92">92</a> <em class="comment">//After the redirect we should not use the explanation from the orginal record</em>
+<a name="93" href="#93">93</a> spfData.setIgnoreExplanation(<strong>true</strong>);
+<a name="94" href="#94">94</a> }
+<a name="95" href="#95">95</a>
+<a name="96" href="#96">96</a> <strong>return</strong> res;
+<a name="97" href="#97">97</a>
+<a name="98" href="#98">98</a> } <strong>else</strong> {
+<a name="99" href="#99">99</a> <em class="comment">// return null if we should not use the redirect at all</em>
+<a name="100" href="#100">100</a> <strong>return</strong> <strong>null</strong>;
+<a name="101" href="#101">101</a> }
+<a name="102" href="#102">102</a> }
+<a name="103" href="#103">103</a>
+<a name="104" href="#104">104</a> <em>/**<em>*</em></em>
+<a name="105" href="#105">105</a> <em> * @see org.apache.james.jspf.core.Modifier#enforceSingleInstance()</em>
+<a name="106" href="#106">106</a> <em> */</em>
+<a name="107" href="#107">107</a> <strong>public</strong> <strong>boolean</strong> enforceSingleInstance() {
+<a name="108" href="#108">108</a> <strong>return</strong> <strong>true</strong>;
+<a name="109" href="#109">109</a> }
+<a name="110" href="#110">110</a>
+<a name="111" href="#111">111</a>
+<a name="112" href="#112">112</a> <em>/**<em>*</em></em>
+<a name="113" href="#113">113</a> <em> * @see org.apache.james.jspf.core.LogEnabled#enableLogging(org.apache.james.jspf.core.Logger)</em>
+<a name="114" href="#114">114</a> <em> */</em>
+<a name="115" href="#115">115</a> <strong>public</strong> <strong>void</strong> enableLogging(<a href="../../../../../org/apache/james/jspf/core/Logger.html">Logger</a> logger) {
+<a name="116" href="#116">116</a> <strong>this</strong>.log = logger;
+<a name="117" href="#117">117</a> }
+<a name="118" href="#118">118</a>
+<a name="119" href="#119">119</a> }
</pre>
<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
</html>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-frame.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-frame.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-frame.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.terms</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.terms</title>
<link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
</head>
<body>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-summary.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-summary.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/terms/package-summary.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference Package $name</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package $name</title>
<link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
</head>
<body>
@@ -122,6 +122,6 @@
</ul>
</div>
<hr />
- Copyright © 2006 Apache Software Foundation. All Rights Reserved.
+ Copyright © 2006 The Apache Software Foundation. All Rights Reserved.
</body>
</html>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/ConfigurationMatch.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/ConfigurationMatch.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/ConfigurationMatch.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/ConfigurationMatch.html Sun Sep 24 08:35:04 2006
@@ -26,90 +26,53 @@
<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.util;
-<a name="22" href="#22">22</a>
-<a name="23" href="#23">23</a> <strong>import</strong> java.util.regex.Matcher;
-<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> * @author Stefano Bagnara</em>
-<a name="27" href="#27">27</a> <em> * </em>
-<a name="28" href="#28">28</a> <em> * Provides a MatchResult view of a subset of another MatchResult</em>
-<a name="29" href="#29">29</a> <em> */</em>
-<a name="30" href="#30">30</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/util/ConfigurationMatch.html">ConfigurationMatch</a> {
+<a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf.util;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong>import</strong> java.util.regex.Matcher;
+<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> * </em>
+<a name="26" href="#26">26</a> <em> * Provides a MatchResult view of a subset of another MatchResult</em>
+<a name="27" href="#27">27</a> <em> */</em>
+<a name="28" href="#28">28</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/james/jspf/util/ConfigurationMatch.html">ConfigurationMatch</a> {
+<a name="29" href="#29">29</a>
+<a name="30" href="#30">30</a> <strong>private</strong> Matcher wrapped;
<a name="31" href="#31">31</a>
-<a name="32" href="#32">32</a> <strong>private</strong> Matcher wrapped;
+<a name="32" href="#32">32</a> <strong>private</strong> <strong>int</strong> start;
<a name="33" href="#33">33</a>
-<a name="34" href="#34">34</a> <strong>private</strong> <strong>int</strong> start;
+<a name="34" href="#34">34</a> <strong>private</strong> <strong>int</strong> count;
<a name="35" href="#35">35</a>
-<a name="36" href="#36">36</a> <strong>private</strong> <strong>int</strong> count;
-<a name="37" href="#37">37</a>
-<a name="38" href="#38">38</a> <em>/**<em>*</em></em>
-<a name="39" href="#39">39</a> <em> * @param w</em>
-<a name="40" href="#40">40</a> <em> * Original MatchResult</em>
-<a name="41" href="#41">41</a> <em> * @param zero</em>
-<a name="42" href="#42">42</a> <em> * The original index returned when group(0) is requested</em>
-<a name="43" href="#43">43</a> <em> * @param start</em>
-<a name="44" href="#44">44</a> <em> * the position where the subresult start</em>
-<a name="45" href="#45">45</a> <em> * @param count</em>
-<a name="46" href="#46">46</a> <em> * number of groups part of the subresult</em>
-<a name="47" href="#47">47</a> <em> */</em>
-<a name="48" href="#48">48</a> <strong>public</strong> <a href="../../../../../org/apache/james/jspf/util/ConfigurationMatch.html">ConfigurationMatch</a>(Matcher w, <strong>int</strong> start, <strong>int</strong> count) {
-<a name="49" href="#49">49</a> <strong>this</strong>.wrapped = w;
-<a name="50" href="#50">50</a> <strong>this</strong>.count = count;
-<a name="51" href="#51">51</a> <strong>this</strong>.start = start;
-<a name="52" href="#52">52</a> }
-<a name="53" href="#53">53</a>
-<a name="54" href="#54">54</a> <em>/**<em>*</em></em>
-<a name="55" href="#55">55</a> <em> * @see java.util.regex.MatchResult#end()</em>
-<a name="56" href="#56">56</a> <em> */</em>
-<a name="57" href="#57">57</a> <strong>public</strong> <strong>int</strong> end() {
-<a name="58" href="#58">58</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
-<a name="59" href="#59">59</a> }
-<a name="60" href="#60">60</a>
-<a name="61" href="#61">61</a> <em>/**<em>*</em></em>
-<a name="62" href="#62">62</a> <em> * @see java.util.regex.MatchResult#end(int)</em>
-<a name="63" href="#63">63</a> <em> */</em>
-<a name="64" href="#64">64</a> <strong>public</strong> <strong>int</strong> end(<strong>int</strong> arg0) {
-<a name="65" href="#65">65</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
-<a name="66" href="#66">66</a> }
-<a name="67" href="#67">67</a>
-<a name="68" href="#68">68</a> <em>/**<em>*</em></em>
-<a name="69" href="#69">69</a> <em> * @see java.util.regex.MatchResult#group()</em>
-<a name="70" href="#70">70</a> <em> */</em>
-<a name="71" href="#71">71</a> <strong>public</strong> String group() {
-<a name="72" href="#72">72</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
-<a name="73" href="#73">73</a> }
-<a name="74" href="#74">74</a>
-<a name="75" href="#75">75</a> <em>/**<em>*</em></em>
-<a name="76" href="#76">76</a> <em> * @see java.util.regex.MatchResult#group(int)</em>
-<a name="77" href="#77">77</a> <em> */</em>
-<a name="78" href="#78">78</a> <strong>public</strong> String group(<strong>int</strong> arg0) {
-<a name="79" href="#79">79</a> <strong>return</strong> wrapped.group(arg0 + start);
-<a name="80" href="#80">80</a> }
-<a name="81" href="#81">81</a>
-<a name="82" href="#82">82</a> <em>/**<em>*</em></em>
-<a name="83" href="#83">83</a> <em> * @see java.util.regex.MatchResult#groupCount()</em>
-<a name="84" href="#84">84</a> <em> */</em>
-<a name="85" href="#85">85</a> <strong>public</strong> <strong>int</strong> groupCount() {
-<a name="86" href="#86">86</a> <strong>return</strong> count;
-<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> * @see java.util.regex.MatchResult#start()</em>
-<a name="91" href="#91">91</a> <em> */</em>
-<a name="92" href="#92">92</a> <strong>public</strong> <strong>int</strong> start() {
-<a name="93" href="#93">93</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
-<a name="94" href="#94">94</a> }
-<a name="95" href="#95">95</a>
-<a name="96" href="#96">96</a> <em>/**<em>*</em></em>
-<a name="97" href="#97">97</a> <em> * @see java.util.regex.MatchResult#start(int)</em>
-<a name="98" href="#98">98</a> <em> */</em>
-<a name="99" href="#99">99</a> <strong>public</strong> <strong>int</strong> start(<strong>int</strong> arg0) {
-<a name="100" href="#100">100</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
-<a name="101" href="#101">101</a> }
-<a name="102" href="#102">102</a>
-<a name="103" href="#103">103</a> }
+<a name="36" href="#36">36</a> <em>/**<em>*</em></em>
+<a name="37" href="#37">37</a> <em> * @param w</em>
+<a name="38" href="#38">38</a> <em> * Original MatchResult</em>
+<a name="39" href="#39">39</a> <em> * @param zero</em>
+<a name="40" href="#40">40</a> <em> * The original index returned when group(0) is requested</em>
+<a name="41" href="#41">41</a> <em> * @param start</em>
+<a name="42" href="#42">42</a> <em> * the position where the subresult start</em>
+<a name="43" href="#43">43</a> <em> * @param count</em>
+<a name="44" href="#44">44</a> <em> * number of groups part of the subresult</em>
+<a name="45" href="#45">45</a> <em> */</em>
+<a name="46" href="#46">46</a> <strong>public</strong> <a href="../../../../../org/apache/james/jspf/util/ConfigurationMatch.html">ConfigurationMatch</a>(Matcher w, <strong>int</strong> start, <strong>int</strong> count) {
+<a name="47" href="#47">47</a> <strong>this</strong>.wrapped = w;
+<a name="48" href="#48">48</a> <strong>this</strong>.count = count;
+<a name="49" href="#49">49</a> <strong>this</strong>.start = start;
+<a name="50" href="#50">50</a> }
+<a name="51" href="#51">51</a>
+<a name="52" href="#52">52</a> <em>/**<em>*</em></em>
+<a name="53" href="#53">53</a> <em> * @see java.util.regex.MatchResult#group(int)</em>
+<a name="54" href="#54">54</a> <em> */</em>
+<a name="55" href="#55">55</a> <strong>public</strong> String group(<strong>int</strong> arg0) {
+<a name="56" href="#56">56</a> <strong>return</strong> wrapped.group(arg0 + start);
+<a name="57" href="#57">57</a> }
+<a name="58" href="#58">58</a>
+<a name="59" href="#59">59</a> <em>/**<em>*</em></em>
+<a name="60" href="#60">60</a> <em> * @see java.util.regex.MatchResult#groupCount()</em>
+<a name="61" href="#61">61</a> <em> */</em>
+<a name="62" href="#62">62</a> <strong>public</strong> <strong>int</strong> groupCount() {
+<a name="63" href="#63">63</a> <strong>return</strong> count;
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a>
+<a name="66" href="#66">66</a> }
</pre>
<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
</html>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/Inet6Util.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/Inet6Util.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/Inet6Util.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/Inet6Util.html Sun Sep 24 08:35:04 2006
@@ -295,139 +295,146 @@
<a name="286" href="#286">286</a> <strong>break</strong>;
<a name="287" href="#287">287</a>
<a name="288" href="#288">288</a> <strong>case</strong> ':':
-<a name="289" href="#289">289</a> numberOfColons++;
-<a name="290" href="#290">290</a> <strong>if</strong> (numberOfColons > 7)
-<a name="291" href="#291">291</a> <strong>return</strong> false;
-<a name="292" href="#292">292</a> <strong>if</strong> (numberOfPeriods > 0)
+<a name="289" href="#289">289</a> <em class="comment">// FIX "IP6 mechanism syntax #ip6-bad1"</em>
+<a name="290" href="#290">290</a> <em class="comment">// An IPV6 address cannot start with a single ":".</em>
+<a name="291" href="#291">291</a> <em class="comment">// Either it can starti with "::" or with a number.</em>
+<a name="292" href="#292">292</a> <strong>if</strong> (i == offset && (ipAddress.length() <= i || ipAddress.charAt(i+1) != ':')) {
<a name="293" href="#293">293</a> <strong>return</strong> false;
-<a name="294" href="#294">294</a> <strong>if</strong> (prevChar == ':') {
-<a name="295" href="#295">295</a> <strong>if</strong> (doubleColon)
-<a name="296" href="#296">296</a> <strong>return</strong> false;
-<a name="297" href="#297">297</a> doubleColon = <strong>true</strong>;
-<a name="298" href="#298">298</a> }
-<a name="299" href="#299">299</a> word = <span class="string">""</span>;
-<a name="300" href="#300">300</a> <strong>break</strong>;
-<a name="301" href="#301">301</a> <strong>case</strong> '%':
-<a name="302" href="#302">302</a> <strong>if</strong> (numberOfColons == 0)
-<a name="303" href="#303">303</a> <strong>return</strong> false;
-<a name="304" href="#304">304</a> numberOfPercent++;
-<a name="305" href="#305">305</a>
-<a name="306" href="#306">306</a> <em class="comment">// validate that the stuff after the % is valid</em>
-<a name="307" href="#307">307</a> <strong>if</strong> ((i + 1) >= length) {
-<a name="308" href="#308">308</a> <em class="comment">// in this case the percent is there but no number is</em>
-<a name="309" href="#309">309</a> <em class="comment">// available</em>
+<a name="294" href="#294">294</a> }
+<a name="295" href="#295">295</a> <em class="comment">// END FIX "IP6 mechanism syntax #ip6-bad1"</em>
+<a name="296" href="#296">296</a> numberOfColons++;
+<a name="297" href="#297">297</a> <strong>if</strong> (numberOfColons > 7)
+<a name="298" href="#298">298</a> <strong>return</strong> false;
+<a name="299" href="#299">299</a> <strong>if</strong> (numberOfPeriods > 0)
+<a name="300" href="#300">300</a> <strong>return</strong> false;
+<a name="301" href="#301">301</a> <strong>if</strong> (prevChar == ':') {
+<a name="302" href="#302">302</a> <strong>if</strong> (doubleColon)
+<a name="303" href="#303">303</a> <strong>return</strong> false;
+<a name="304" href="#304">304</a> doubleColon = <strong>true</strong>;
+<a name="305" href="#305">305</a> }
+<a name="306" href="#306">306</a> word = <span class="string">""</span>;
+<a name="307" href="#307">307</a> <strong>break</strong>;
+<a name="308" href="#308">308</a> <strong>case</strong> '%':
+<a name="309" href="#309">309</a> <strong>if</strong> (numberOfColons == 0)
<a name="310" href="#310">310</a> <strong>return</strong> false;
-<a name="311" href="#311">311</a> }
-<a name="312" href="#312">312</a> <strong>try</strong> {
-<a name="313" href="#313">313</a> Integer.parseInt(ipAddress.substring(i + 1));
-<a name="314" href="#314">314</a> } <strong>catch</strong> (NumberFormatException e) {
-<a name="315" href="#315">315</a> <em class="comment">// right now we just support an integer after the % so if</em>
-<a name="316" href="#316">316</a> <em class="comment">// this is not</em>
-<a name="317" href="#317">317</a> <em class="comment">// what is there then return</em>
-<a name="318" href="#318">318</a> <strong>return</strong> false;
-<a name="319" href="#319">319</a> }
-<a name="320" href="#320">320</a> <strong>break</strong>;
-<a name="321" href="#321">321</a>
-<a name="322" href="#322">322</a> <strong>default</strong>:
-<a name="323" href="#323">323</a> <strong>if</strong> (numberOfPercent == 0) {
-<a name="324" href="#324">324</a> <strong>if</strong> (word.length() > 3)
-<a name="325" href="#325">325</a> <strong>return</strong> false;
-<a name="326" href="#326">326</a> <strong>if</strong> (!isValidHexChar(c))
-<a name="327" href="#327">327</a> <strong>return</strong> false;
-<a name="328" href="#328">328</a> }
-<a name="329" href="#329">329</a> word += c;
-<a name="330" href="#330">330</a> }
-<a name="331" href="#331">331</a> }
-<a name="332" href="#332">332</a>
-<a name="333" href="#333">333</a> <em class="comment">// Check if we have an IPv4 ending</em>
-<a name="334" href="#334">334</a> <strong>if</strong> (numberOfPeriods > 0) {
-<a name="335" href="#335">335</a> <strong>if</strong> (numberOfPeriods != 3 || !isValidIP4Word(word))
-<a name="336" href="#336">336</a> <strong>return</strong> false;
-<a name="337" href="#337">337</a> } <strong>else</strong> {
-<a name="338" href="#338">338</a> <em class="comment">// If we're at then end and we haven't had 7 colons then there is a</em>
-<a name="339" href="#339">339</a> <em class="comment">// problem unless we encountered a doubleColon</em>
-<a name="340" href="#340">340</a> <strong>if</strong> (numberOfColons != 7 && !doubleColon) {
-<a name="341" href="#341">341</a> <strong>return</strong> false;
-<a name="342" href="#342">342</a> }
-<a name="343" href="#343">343</a>
-<a name="344" href="#344">344</a> <em class="comment">// If we have an empty word at the end, it means we ended in either</em>
-<a name="345" href="#345">345</a> <em class="comment">// a : or a .</em>
-<a name="346" href="#346">346</a> <em class="comment">// If we did not end in :: then this is invalid</em>
-<a name="347" href="#347">347</a> <strong>if</strong> (numberOfPercent == 0) {
-<a name="348" href="#348">348</a> <strong>if</strong> (word == <span class="string">""</span> && ipAddress.charAt(length - 1 - offset) == ':'
-<a name="349" href="#349">349</a> && ipAddress.charAt(length - 2 - offset) != ':') {
-<a name="350" href="#350">350</a> <strong>return</strong> false;
-<a name="351" href="#351">351</a> }
-<a name="352" href="#352">352</a> }
-<a name="353" href="#353">353</a> }
-<a name="354" href="#354">354</a>
-<a name="355" href="#355">355</a> <strong>return</strong> <strong>true</strong>;
-<a name="356" href="#356">356</a> }
-<a name="357" href="#357">357</a>
-<a name="358" href="#358">358</a> <strong>public</strong> <strong>static</strong> <strong>boolean</strong> isValidIP4Word(String word) {
-<a name="359" href="#359">359</a> <strong>char</strong> c;
-<a name="360" href="#360">360</a> <strong>if</strong> (word.length() < 1 || word.length() > 3)
-<a name="361" href="#361">361</a> <strong>return</strong> false;
-<a name="362" href="#362">362</a> <strong>for</strong> (<strong>int</strong> i = 0; i < word.length(); i++) {
-<a name="363" href="#363">363</a> c = word.charAt(i);
-<a name="364" href="#364">364</a> <strong>if</strong> (!(c >= '0' && c <= '9'))
-<a name="365" href="#365">365</a> <strong>return</strong> false;
-<a name="366" href="#366">366</a> }
-<a name="367" href="#367">367</a> <strong>if</strong> (Integer.parseInt(word) > 255)
+<a name="311" href="#311">311</a> numberOfPercent++;
+<a name="312" href="#312">312</a>
+<a name="313" href="#313">313</a> <em class="comment">// validate that the stuff after the % is valid</em>
+<a name="314" href="#314">314</a> <strong>if</strong> ((i + 1) >= length) {
+<a name="315" href="#315">315</a> <em class="comment">// in this case the percent is there but no number is</em>
+<a name="316" href="#316">316</a> <em class="comment">// available</em>
+<a name="317" href="#317">317</a> <strong>return</strong> false;
+<a name="318" href="#318">318</a> }
+<a name="319" href="#319">319</a> <strong>try</strong> {
+<a name="320" href="#320">320</a> Integer.parseInt(ipAddress.substring(i + 1));
+<a name="321" href="#321">321</a> } <strong>catch</strong> (NumberFormatException e) {
+<a name="322" href="#322">322</a> <em class="comment">// right now we just support an integer after the % so if</em>
+<a name="323" href="#323">323</a> <em class="comment">// this is not</em>
+<a name="324" href="#324">324</a> <em class="comment">// what is there then return</em>
+<a name="325" href="#325">325</a> <strong>return</strong> false;
+<a name="326" href="#326">326</a> }
+<a name="327" href="#327">327</a> <strong>break</strong>;
+<a name="328" href="#328">328</a>
+<a name="329" href="#329">329</a> <strong>default</strong>:
+<a name="330" href="#330">330</a> <strong>if</strong> (numberOfPercent == 0) {
+<a name="331" href="#331">331</a> <strong>if</strong> (word.length() > 3)
+<a name="332" href="#332">332</a> <strong>return</strong> false;
+<a name="333" href="#333">333</a> <strong>if</strong> (!isValidHexChar(c))
+<a name="334" href="#334">334</a> <strong>return</strong> false;
+<a name="335" href="#335">335</a> }
+<a name="336" href="#336">336</a> word += c;
+<a name="337" href="#337">337</a> }
+<a name="338" href="#338">338</a> }
+<a name="339" href="#339">339</a>
+<a name="340" href="#340">340</a> <em class="comment">// Check if we have an IPv4 ending</em>
+<a name="341" href="#341">341</a> <strong>if</strong> (numberOfPeriods > 0) {
+<a name="342" href="#342">342</a> <strong>if</strong> (numberOfPeriods != 3 || !isValidIP4Word(word))
+<a name="343" href="#343">343</a> <strong>return</strong> false;
+<a name="344" href="#344">344</a> } <strong>else</strong> {
+<a name="345" href="#345">345</a> <em class="comment">// If we're at then end and we haven't had 7 colons then there is a</em>
+<a name="346" href="#346">346</a> <em class="comment">// problem unless we encountered a doubleColon</em>
+<a name="347" href="#347">347</a> <strong>if</strong> (numberOfColons != 7 && !doubleColon) {
+<a name="348" href="#348">348</a> <strong>return</strong> false;
+<a name="349" href="#349">349</a> }
+<a name="350" href="#350">350</a>
+<a name="351" href="#351">351</a> <em class="comment">// If we have an empty word at the end, it means we ended in either</em>
+<a name="352" href="#352">352</a> <em class="comment">// a : or a .</em>
+<a name="353" href="#353">353</a> <em class="comment">// If we did not end in :: then this is invalid</em>
+<a name="354" href="#354">354</a> <strong>if</strong> (numberOfPercent == 0) {
+<a name="355" href="#355">355</a> <strong>if</strong> (word == <span class="string">""</span> && ipAddress.charAt(length - 1 - offset) == ':'
+<a name="356" href="#356">356</a> && ipAddress.charAt(length - 2 - offset) != ':') {
+<a name="357" href="#357">357</a> <strong>return</strong> false;
+<a name="358" href="#358">358</a> }
+<a name="359" href="#359">359</a> }
+<a name="360" href="#360">360</a> }
+<a name="361" href="#361">361</a>
+<a name="362" href="#362">362</a> <strong>return</strong> <strong>true</strong>;
+<a name="363" href="#363">363</a> }
+<a name="364" href="#364">364</a>
+<a name="365" href="#365">365</a> <strong>public</strong> <strong>static</strong> <strong>boolean</strong> isValidIP4Word(String word) {
+<a name="366" href="#366">366</a> <strong>char</strong> c;
+<a name="367" href="#367">367</a> <strong>if</strong> (word.length() < 1 || word.length() > 3)
<a name="368" href="#368">368</a> <strong>return</strong> false;
-<a name="369" href="#369">369</a> <strong>return</strong> <strong>true</strong>;
-<a name="370" href="#370">370</a> }
-<a name="371" href="#371">371</a>
-<a name="372" href="#372">372</a> <strong>static</strong> <strong>boolean</strong> isValidHexChar(<strong>char</strong> c) {
-<a name="373" href="#373">373</a>
-<a name="374" href="#374">374</a> <strong>return</strong> (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F')
-<a name="375" href="#375">375</a> || (c >= 'a' && c <= 'f');
-<a name="376" href="#376">376</a> }
-<a name="377" href="#377">377</a>
-<a name="378" href="#378">378</a> <em>/**<em>*</em></em>
-<a name="379" href="#379">379</a> <em> * Takes a string and parses it to see if it is a valid IPV4 address.</em>
-<a name="380" href="#380">380</a> <em> * </em>
-<a name="381" href="#381">381</a> <em> * @return true, if the string represents an IPV4 address in dotted</em>
-<a name="382" href="#382">382</a> <em> * notation, false otherwise</em>
-<a name="383" href="#383">383</a> <em> */</em>
-<a name="384" href="#384">384</a> <strong>public</strong> <strong>static</strong> <strong>boolean</strong> isValidIPV4Address(String value) {
-<a name="385" href="#385">385</a>
-<a name="386" href="#386">386</a> <strong>int</strong> periods = 0;
-<a name="387" href="#387">387</a> <strong>int</strong> i = 0;
-<a name="388" href="#388">388</a> <strong>int</strong> length = value.length();
-<a name="389" href="#389">389</a>
-<a name="390" href="#390">390</a> <strong>if</strong> (length > 15)
-<a name="391" href="#391">391</a> <strong>return</strong> false;
-<a name="392" href="#392">392</a> <strong>char</strong> c = 0;
-<a name="393" href="#393">393</a> String word = <span class="string">""</span>;
-<a name="394" href="#394">394</a> <strong>for</strong> (i = 0; i < length; i++) {
-<a name="395" href="#395">395</a> c = value.charAt(i);
-<a name="396" href="#396">396</a> <strong>if</strong> (c == '.') {
-<a name="397" href="#397">397</a> periods++;
-<a name="398" href="#398">398</a> <strong>if</strong> (periods > 3)
-<a name="399" href="#399">399</a> <strong>return</strong> false;
-<a name="400" href="#400">400</a> <strong>if</strong> (word == <span class="string">""</span>)
-<a name="401" href="#401">401</a> <strong>return</strong> false;
-<a name="402" href="#402">402</a> <strong>if</strong> (Integer.parseInt(word) > 255)
-<a name="403" href="#403">403</a> <strong>return</strong> false;
-<a name="404" href="#404">404</a> word = <span class="string">""</span>;
-<a name="405" href="#405">405</a> } <strong>else</strong> <strong>if</strong> (!(Character.isDigit(c)))
-<a name="406" href="#406">406</a> <strong>return</strong> false;
-<a name="407" href="#407">407</a> <strong>else</strong> {
-<a name="408" href="#408">408</a> <strong>if</strong> (word.length() > 2)
-<a name="409" href="#409">409</a> <strong>return</strong> false;
-<a name="410" href="#410">410</a> word += c;
-<a name="411" href="#411">411</a> }
-<a name="412" href="#412">412</a> }
-<a name="413" href="#413">413</a>
-<a name="414" href="#414">414</a> <strong>if</strong> (word == <span class="string">""</span> || Integer.parseInt(word) > 255)
-<a name="415" href="#415">415</a> <strong>return</strong> false;
-<a name="416" href="#416">416</a> <strong>if</strong> (periods != 3)
-<a name="417" href="#417">417</a> <strong>return</strong> false;
-<a name="418" href="#418">418</a> <strong>return</strong> <strong>true</strong>;
-<a name="419" href="#419">419</a> }
+<a name="369" href="#369">369</a> <strong>for</strong> (<strong>int</strong> i = 0; i < word.length(); i++) {
+<a name="370" href="#370">370</a> c = word.charAt(i);
+<a name="371" href="#371">371</a> <strong>if</strong> (!(c >= '0' && c <= '9'))
+<a name="372" href="#372">372</a> <strong>return</strong> false;
+<a name="373" href="#373">373</a> }
+<a name="374" href="#374">374</a> <strong>if</strong> (Integer.parseInt(word) > 255)
+<a name="375" href="#375">375</a> <strong>return</strong> false;
+<a name="376" href="#376">376</a> <strong>return</strong> <strong>true</strong>;
+<a name="377" href="#377">377</a> }
+<a name="378" href="#378">378</a>
+<a name="379" href="#379">379</a> <strong>static</strong> <strong>boolean</strong> isValidHexChar(<strong>char</strong> c) {
+<a name="380" href="#380">380</a>
+<a name="381" href="#381">381</a> <strong>return</strong> (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F')
+<a name="382" href="#382">382</a> || (c >= 'a' && c <= 'f');
+<a name="383" href="#383">383</a> }
+<a name="384" href="#384">384</a>
+<a name="385" href="#385">385</a> <em>/**<em>*</em></em>
+<a name="386" href="#386">386</a> <em> * Takes a string and parses it to see if it is a valid IPV4 address.</em>
+<a name="387" href="#387">387</a> <em> * </em>
+<a name="388" href="#388">388</a> <em> * @return true, if the string represents an IPV4 address in dotted</em>
+<a name="389" href="#389">389</a> <em> * notation, false otherwise</em>
+<a name="390" href="#390">390</a> <em> */</em>
+<a name="391" href="#391">391</a> <strong>public</strong> <strong>static</strong> <strong>boolean</strong> isValidIPV4Address(String value) {
+<a name="392" href="#392">392</a>
+<a name="393" href="#393">393</a> <strong>int</strong> periods = 0;
+<a name="394" href="#394">394</a> <strong>int</strong> i = 0;
+<a name="395" href="#395">395</a> <strong>int</strong> length = value.length();
+<a name="396" href="#396">396</a>
+<a name="397" href="#397">397</a> <strong>if</strong> (length > 15)
+<a name="398" href="#398">398</a> <strong>return</strong> false;
+<a name="399" href="#399">399</a> <strong>char</strong> c = 0;
+<a name="400" href="#400">400</a> String word = <span class="string">""</span>;
+<a name="401" href="#401">401</a> <strong>for</strong> (i = 0; i < length; i++) {
+<a name="402" href="#402">402</a> c = value.charAt(i);
+<a name="403" href="#403">403</a> <strong>if</strong> (c == '.') {
+<a name="404" href="#404">404</a> periods++;
+<a name="405" href="#405">405</a> <strong>if</strong> (periods > 3)
+<a name="406" href="#406">406</a> <strong>return</strong> false;
+<a name="407" href="#407">407</a> <strong>if</strong> (word == <span class="string">""</span>)
+<a name="408" href="#408">408</a> <strong>return</strong> false;
+<a name="409" href="#409">409</a> <strong>if</strong> (Integer.parseInt(word) > 255)
+<a name="410" href="#410">410</a> <strong>return</strong> false;
+<a name="411" href="#411">411</a> word = <span class="string">""</span>;
+<a name="412" href="#412">412</a> } <strong>else</strong> <strong>if</strong> (!(Character.isDigit(c)))
+<a name="413" href="#413">413</a> <strong>return</strong> false;
+<a name="414" href="#414">414</a> <strong>else</strong> {
+<a name="415" href="#415">415</a> <strong>if</strong> (word.length() > 2)
+<a name="416" href="#416">416</a> <strong>return</strong> false;
+<a name="417" href="#417">417</a> word += c;
+<a name="418" href="#418">418</a> }
+<a name="419" href="#419">419</a> }
<a name="420" href="#420">420</a>
-<a name="421" href="#421">421</a> }
+<a name="421" href="#421">421</a> <strong>if</strong> (word == <span class="string">""</span> || Integer.parseInt(word) > 255)
+<a name="422" href="#422">422</a> <strong>return</strong> false;
+<a name="423" href="#423">423</a> <strong>if</strong> (periods != 3)
+<a name="424" href="#424">424</a> <strong>return</strong> false;
+<a name="425" href="#425">425</a> <strong>return</strong> <strong>true</strong>;
+<a name="426" href="#426">426</a> }
+<a name="427" href="#427">427</a>
+<a name="428" href="#428">428</a> }
</pre>
<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
</html>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-frame.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-frame.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-frame.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.util</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.util</title>
<link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
</head>
<body>
Modified: james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-summary.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-summary.html (original)
+++ james/site/trunk/www/jspf/xref/org/apache/james/jspf/util/package-summary.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference Package $name</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package $name</title>
<link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
</head>
<body>
@@ -67,6 +67,6 @@
</ul>
</div>
<hr />
- Copyright © 2006 Apache Software Foundation. All Rights Reserved.
+ Copyright © 2006 The Apache Software Foundation. All Rights Reserved.
</body>
</html>
Modified: james/site/trunk/www/jspf/xref/overview-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/overview-frame.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/overview-frame.html (original)
+++ james/site/trunk/www/jspf/xref/overview-frame.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
</head>
<body>
Modified: james/site/trunk/www/jspf/xref/overview-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/overview-summary.html?view=diff&rev=449415&r1=449414&r2=449415
==============================================================================
--- james/site/trunk/www/jspf/xref/overview-summary.html (original)
+++ james/site/trunk/www/jspf/xref/overview-summary.html Sun Sep 24 08:35:04 2006
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>Apache James jSPF 0.9-SNAPSHOT Reference</title>
+ <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
</head>
<body>
@@ -24,7 +24,7 @@
</ul>
</div>
- <h2>Apache James jSPF 0.9-SNAPSHOT Reference</h2>
+ <h2>Apache JAMES jSPF 0.9-SNAPSHOT Reference</h2>
<table class="summary">
<thead>
@@ -89,6 +89,6 @@
</div>
<hr />
- Copyright © 2006 Apache Software Foundation. All Rights Reserved.
+ Copyright © 2006 The Apache Software Foundation. All Rights Reserved.
</body>
</html>