/***********************************************************************
 * Copyright (c) 1999-2006 The Apache Software Foundation.             *
 * All rights reserved.                                                *
 * ------------------------------------------------------------------- *
 * Licensed under the Apache License, Version 2.0 (the "License"); you *
 * may not use this file except in compliance with the License. You    *
 * may obtain a copy of the License at:                                *
 *                                                                     *
 *     http://www.apache.org/licenses/LICENSE-2.0                      *
 *                                                                     *
 * Unless required by applicable law or agreed to in writing, software *
 * distributed under the License is distributed on an "AS IS" BASIS,   *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or     *
 * implied.  See the License for the specific language governing       *
 * permissions and limitations under the License.                      *
 ***********************************************************************/

package org.apache.spf.mechanismn;

import org.apache.spf.IPAddr;
import org.apache.spf.SPF1Data;

public interface GenericMechanismn {
    
    /**
     * Run the mechanismn 
     * @param spfData The SPF1Data
     * @return result
     */
    public int run(SPF1Data spfData);
    
    /**
     * @param mechanismPrefix The mechanismPrefix
     * @param checkAddress The ipAddress to check
     * @param domainName The domainName
     * @param maskLenght The maskLength
     */
    public void init(String mechanismPrefix,IPAddr checkAddress, String domainName, int maskLenght);
}

@@ -1199,16 +1199,54 @@
 nismn;%0A%0A
+import org.apache.spf.ErrorException;%0A
 import o
@@ -1434,16 +1434,46 @@
  result%0A
+     * @throws ErrorException%0A
      */%0A
@@ -1508,16 +1508,38 @@
 spfData)
+ throws ErrorException
 ;%0A    %0A 

throw ErrorException