|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jspf.terms.GenericMechanism
public abstract class GenericMechanism
This abstract class represent a gerneric mechanism
| Field Summary | |
|---|---|
protected static String |
DUAL_CIDR_LENGTH_REGEX
ABNF: dual-cidr-length = [ ip4-cidr-length ] [ "/" ip6-cidr-length ] |
protected static String |
IP4_CIDR_LENGTH_REGEX
ABNF: ip4-cidr-length = "/" 1*DIGIT |
protected static 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 String |
expandHost(SPFSession spfData)
Expand the hostname |
protected 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 String IP4_CIDR_LENGTH_REGEX
protected static final String IP6_CIDR_LENGTH_REGEX
protected static final String DUAL_CIDR_LENGTH_REGEX
protected Logger log
protected MacroExpand macroExpand
| Constructor Detail |
|---|
public GenericMechanism()
| Method Detail |
|---|
protected String expandHost(SPFSession spfData)
throws PermErrorException
spfData - The SPF1Data to use
PermErrorException - get Thrown if invalid macros are used
public void config(Configuration params)
throws PermErrorException
ConfigurationEnabled
config in interface ConfigurationEnabledparams - the ConfigurationMatch which should used
PermErrorException - get thrown if a PermError should returnedConfigurationEnabled.config(Configuration)protected String getDomain()
public void enableLogging(Logger logger)
LogEnabled
enableLogging in interface LogEnabledlogger - the logger. Must not be null.LogEnabled.enableLogging(org.apache.james.jspf.core.Logger)public void enableMacroExpand(MacroExpand macroExpand)
MacroExpandEnabled
enableMacroExpand in interface MacroExpandEnabledmacroExpand - 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 | |||||||||