Package mireka.list
Class SubjectRegexpValidator
- Object
-
- mireka.list.SubjectRegexpValidator
-
- All Implemented Interfaces:
MailValidator
public class SubjectRegexpValidator extends Object implements MailValidator
SubjectRegexpValidator accepts a mail if its subject matches the specified regular expression pattern.
-
-
Constructor Summary
Constructors Constructor Description SubjectRegexpValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPattern()voidsetPattern(String pattern)voidsetValue(String pattern)booleanshouldBeAccepted(ParsedMail mail)
-
-
-
Method Detail
-
shouldBeAccepted
public boolean shouldBeAccepted(ParsedMail mail) throws RejectExceptionExt
- Specified by:
shouldBeAcceptedin interfaceMailValidator- Throws:
RejectExceptionExt
-
getPattern
public String getPattern()
- Category:
- GETSET
-
setPattern
public void setPattern(String pattern)
- Category:
- GETSET
-
setValue
public void setValue(String pattern)
- Category:
- GETSET
-
-