Package mireka.filter.local.table
Class RegexAddressSpecification
- Object
-
- mireka.filter.local.table.RegexAddressSpecification
-
- All Implemented Interfaces:
RecipientSpecification
public class RegexAddressSpecification extends Object implements RecipientSpecification
RegexAddressSpecification compares the local part of a recipient address with a regular expression and it also requires the remote part to be identical with the specified remote part.
-
-
Constructor Summary
Constructors Constructor Description RegexAddressSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalPartRegex()StringgetRemotePart()booleanisSatisfiedBy(Recipient recipient)voidsetLocalPartRegex(String localPartRegex)voidsetRemotePart(String remotePart)StringtoString()
-
-
-
Method Detail
-
isSatisfiedBy
public boolean isSatisfiedBy(Recipient recipient)
- Specified by:
isSatisfiedByin interfaceRecipientSpecification
-
toString
public String toString()
- Overrides:
toStringin classObject
-
getLocalPartRegex
public String getLocalPartRegex()
- Category:
- GETSET
-
setLocalPartRegex
public void setLocalPartRegex(String localPartRegex)
- Category:
- GETSET
-
getRemotePart
public String getRemotePart()
- Category:
- GETSET
-
setRemotePart
public void setRemotePart(String remotePart)
- Category:
- GETSET
-
-