|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.jspf.terms.GenericMechanism
public abstract class GenericMechanism
This abstract class represent a gerneric mechanism
Field Summary | |
---|---|
protected static java.lang.String |
DUAL_CIDR_LENGTH_REGEX
ABNF: dual-cidr-length = [ ip4-cidr-length ] [ "/" ip6-cidr-length ] |
protected static java.lang.String |
IP4_CIDR_LENGTH_REGEX
ABNF: ip4-cidr-length = "/" 1*DIGIT |
protected static java.lang.String |
IP6_CIDR_LENGTH_REGEX
ABNF: ip6-cidr-length = "/" 1*DIGIT |
protected Logger |
log
|
protected MacroExpand |
macroExpand
|
Constructor Summary | |
---|---|
GenericMechanism()
|
Method Summary | |
---|---|
void |
config(Configuration params)
Configuration |
void |
enableLogging(Logger logger)
Provide component with a logger. |
void |
enableMacroExpand(MacroExpand macroExpand)
Provide component with a DNSService. |
protected java.lang.String |
expandHost(SPFSession spfData)
Expand the hostname |
protected java.lang.String |
getDomain()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.james.jspf.core.SPFChecker |
---|
checkSPF |
Field Detail |
---|
protected static final java.lang.String IP4_CIDR_LENGTH_REGEX
protected static final java.lang.String IP6_CIDR_LENGTH_REGEX
protected static final java.lang.String DUAL_CIDR_LENGTH_REGEX
protected Logger log
protected MacroExpand macroExpand
Constructor Detail |
---|
public GenericMechanism()
Method Detail |
---|
protected java.lang.String expandHost(SPFSession spfData) throws PermErrorException
spfData
- The SPF1Data to use
PermErrorException
- get Thrown if invalid macros are usedpublic void config(Configuration params) throws PermErrorException
ConfigurationEnabled
config
in interface ConfigurationEnabled
params
- the ConfigurationMatch which should used
PermErrorException
- get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)
protected java.lang.String getDomain()
public void enableLogging(Logger logger)
LogEnabled
enableLogging
in interface LogEnabled
logger
- the logger. Must not be null
.LogEnabled.enableLogging(org.apache.james.jspf.core.Logger)
public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabled
enableMacroExpand
in interface MacroExpandEnabled
macroExpand
- the macroExpand service. Must not be null
.MacroExpandEnabled.enableMacroExpand(org.apache.james.jspf.core.MacroExpand)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |