org.apache.james.jspf.terms
Class IP6Mechanism

java.lang.Object
  extended by org.apache.james.jspf.terms.GenericMechanism
      extended by org.apache.james.jspf.terms.IP4Mechanism
          extended by org.apache.james.jspf.terms.IP6Mechanism
All Implemented Interfaces:
LogEnabled, MacroExpandEnabled, SPFChecker, ConfigurationEnabled, Mechanism

public class IP6Mechanism
extends IP4Mechanism

This class represent the ip6 mechanism


Field Summary
static java.lang.String REGEX
          ABNF: IP6 = "ip6" ":" ip6-network [ ip6-cidr-length ]
 
Fields inherited from class org.apache.james.jspf.terms.GenericMechanism
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, log, macroExpand
 
Constructor Summary
IP6Mechanism()
           
 
Method Summary
protected  int getMaxCidr()
          Returns the max cidr for ip4
protected  boolean isValidAddress(java.lang.String ipString)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.james.jspf.terms.IP4Mechanism
checkSPF, config, getIp
 
Methods inherited from class org.apache.james.jspf.terms.GenericMechanism
enableLogging, enableMacroExpand, expandHost, getDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGEX

public static final java.lang.String REGEX
ABNF: IP6 = "ip6" ":" ip6-network [ ip6-cidr-length ]

See Also:
Constant Field Values
Constructor Detail

IP6Mechanism

public IP6Mechanism()
Method Detail

isValidAddress

protected boolean isValidAddress(java.lang.String ipString)
Overrides:
isValidAddress in class IP4Mechanism
See Also:
IP4Mechanism.isValidAddress(String)

getMaxCidr

protected int getMaxCidr()
Description copied from class: IP4Mechanism
Returns the max cidr for ip4

Overrides:
getMaxCidr in class IP4Mechanism
Returns:
maxCidr The max cidr
See Also:
IP4Mechanism.getMaxCidr()

toString

public java.lang.String toString()
Overrides:
toString in class IP4Mechanism
See Also:
Object.toString()


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.