Package mireka.address
Class GenericRecipient
- Object
-
- mireka.address.GenericRecipient
-
- All Implemented Interfaces:
Recipient,RemotePartContainingRecipient
public class GenericRecipient extends Object implements RemotePartContainingRecipient
This class represents a generic recipient, which is neither the special global nor the special domain specific postmaster address.
-
-
Constructor Summary
Constructors Constructor Description GenericRecipient(Mailbox mailbox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailboxgetMailbox()booleanisDomainPostmaster()booleanisGlobalPostmaster()booleanisPostmaster()LocalPartlocalPart()StringsourceRouteStripped()StringtoString()Returns the displayable (unescaped) form of the recipient, without source route.
-
-
-
Constructor Detail
-
GenericRecipient
public GenericRecipient(Mailbox mailbox)
-
-
Method Detail
-
isPostmaster
public boolean isPostmaster()
- Specified by:
isPostmasterin interfaceRecipient
-
isGlobalPostmaster
public boolean isGlobalPostmaster()
- Specified by:
isGlobalPostmasterin interfaceRecipient
-
isDomainPostmaster
public boolean isDomainPostmaster()
- Specified by:
isDomainPostmasterin interfaceRecipient
-
sourceRouteStripped
public String sourceRouteStripped()
- Specified by:
sourceRouteStrippedin interfaceRecipient
-
getMailbox
public Mailbox getMailbox()
- Specified by:
getMailboxin interfaceRemotePartContainingRecipient
-
-