Package mireka.address
Interface Recipient
-
- All Known Subinterfaces:
RemotePartContainingRecipient
- All Known Implementing Classes:
DomainPostmaster,GenericRecipient,GlobalPostmaster
public interface RecipientRecipient is the address of the intended recipient of a mail, it is passed in the RCPT SMTP command. It is either a forward path or one of the special postmaster mailbox names.Use
MailAddressFactoryto create a new instance.All implementing classes must implement the
RemotePartContainingRecipientinterface except the special global postmaster recipient.- See Also:
GlobalPostmaster, 4.1.1.3. RECIPIENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDomainPostmaster()booleanisGlobalPostmaster()booleanisPostmaster()LocalPartlocalPart()StringsourceRouteStripped()StringtoString()Returns the displayable (unescaped) form of the recipient, without source route.
-
-
-
Method Detail
-
isPostmaster
boolean isPostmaster()
-
isGlobalPostmaster
boolean isGlobalPostmaster()
-
isDomainPostmaster
boolean isDomainPostmaster()
-
localPart
LocalPart localPart()
-
sourceRouteStripped
String sourceRouteStripped()
-
toString
String toString()
Returns the displayable (unescaped) form of the recipient, without source route.- Overrides:
toStringin classObject
-
-