Package org.apache.james.jspf.terms
Class UnknownModifier
java.lang.Object
org.apache.james.jspf.terms.UnknownModifier
- All Implemented Interfaces:
SPFChecker
,ConfigurationEnabled
,Modifier
This Class represent an Unknown Modifier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSPF
(SPFSession spfData) Run check for SPF with the given values.void
config
(Configuration params) Configurationboolean
Return true if the Modifier is only allowed once
-
Field Details
-
REGEX
ABNF: name = ALPHA *( ALPHA / DIGIT / "-" / "_" / "." ) ABNF: unknown-modifier = name "=" macro-string- See Also:
-
-
Constructor Details
-
UnknownModifier
public UnknownModifier()
-
-
Method Details
-
checkSPF
Description copied from interface:SPFChecker
Run check for SPF with the given values.- Specified by:
checkSPF
in interfaceSPFChecker
- Parameters:
spfData
- The SPF1Data which should be used to run the check- Throws:
PermErrorException
- Get thrown if an error was detected- See Also:
-
enforceSingleInstance
public boolean enforceSingleInstance()Description copied from interface:Modifier
Return true if the Modifier is only allowed once- Specified by:
enforceSingleInstance
in interfaceModifier
- Returns:
- true if only one instance of this modifier is allowed
- See Also:
-
config
Description copied from interface:ConfigurationEnabled
Configuration- Specified by:
config
in interfaceConfigurationEnabled
- Parameters:
params
- the ConfigurationMatch which should used- Throws:
PermErrorException
- get thrown if a PermError should returned- See Also:
-