Package mireka.address
Class MailAddressFactory
- Object
-
- mireka.address.MailAddressFactory
-
public class MailAddressFactory extends ObjectMailAddressFactory creates mail address related objects from strings.
-
-
Constructor Summary
Constructors Constructor Description MailAddressFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecipientcreateRecipient(String recipientString)Parses the specified string and creates aRecipientinstance.RecipientcreateRecipientAlreadyVerified(String recipientString)RemotePartcreateRemotePartFromAST(RemotePartAST remotePartAST)RemotePartcreateRemotePartFromDisplayableText(String displayableText)Creates aRemotePartobject by parsing the specified displayable text.ReversePathcreateReversePath(String reversePathString)ReversePathcreateReversePathAlreadyVerified(String reversePathString)RecipientreversePath2Recipient(ReversePath reversePath)
-
-
-
Method Detail
-
createRecipient
public Recipient createRecipient(String recipientString) throws java.text.ParseException
Parses the specified string and creates aRecipientinstance.- Parameters:
recipientString- the recipient parameter of the RCPT SMTP command, without the enclosing angle bracket.- Throws:
java.text.ParseException
-
createRemotePartFromAST
public RemotePart createRemotePartFromAST(RemotePartAST remotePartAST)
-
createRecipientAlreadyVerified
public Recipient createRecipientAlreadyVerified(String recipientString)
-
createRemotePartFromDisplayableText
public RemotePart createRemotePartFromDisplayableText(String displayableText)
Creates aRemotePartobject by parsing the specified displayable text. Note that currently actual parsing of displayable text is not implemented, internationalized domain names must be specified in ASCII compatible text.
-
createReversePath
public ReversePath createReversePath(String reversePathString) throws java.text.ParseException
- Throws:
java.text.ParseException
-
createReversePathAlreadyVerified
public ReversePath createReversePathAlreadyVerified(String reversePathString)
-
reversePath2Recipient
public Recipient reversePath2Recipient(ReversePath reversePath)
-
-