Package software.xdev.mailpit.model
Class SpamAssassinResponse
java.lang.Object
software.xdev.mailpit.model.SpamAssassinResponse
Result is a SpamAssassin result
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(Rule rulesItem) booleangetError()If populated will return an error stringWhether the message is spam or notgetRules()Spam rules triggeredgetScore()Total spam score based on triggered rulesinthashCode()voidvoidvoidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_IS_SPAM
- See Also:
-
JSON_PROPERTY_RULES
- See Also:
-
JSON_PROPERTY_SCORE
- See Also:
-
-
Constructor Details
-
SpamAssassinResponse
public SpamAssassinResponse()
-
-
Method Details
-
error
-
getError
If populated will return an error string- Returns:
- error
-
setError
-
isSpam
-
getIsSpam
Whether the message is spam or not- Returns:
- isSpam
-
setIsSpam
-
rules
-
addRulesItem
-
getRules
Spam rules triggered- Returns:
- rules
-
setRules
-
score
-
getScore
Total spam score based on triggered rules- Returns:
- score
-
setScore
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-