public class MailAddressFactory
extends Object
Constructor and Description |
---|
MailAddressFactory() |
Modifier and Type | Method and Description |
---|---|
Recipient |
createRecipient(String recipientString)
Parses the specified string and creates a
Recipient instance. |
Recipient |
createRecipientAlreadyVerified(String recipientString) |
RemotePart |
createRemotePartFromAST(RemotePartAST remotePartAST) |
RemotePart |
createRemotePartFromDisplayableText(String displayableText)
Creates a
RemotePart object by parsing the specified displayable
text. |
ReversePath |
createReversePath(String reversePathString) |
ReversePath |
createReversePathAlreadyVerified(String reversePathString) |
Recipient |
reversePath2Recipient(ReversePath reversePath) |
public Recipient createRecipient(String recipientString) throws java.text.ParseException
Recipient
instance.recipientString
- the recipient parameter of the RCPT SMTP command, without the
enclosing angle bracket.java.text.ParseException
public RemotePart createRemotePartFromAST(RemotePartAST remotePartAST)
public Recipient createRecipientAlreadyVerified(String recipientString)
public RemotePart createRemotePartFromDisplayableText(String displayableText)
RemotePart
object 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.public ReversePath createReversePath(String reversePathString) throws java.text.ParseException
java.text.ParseException
public ReversePath createReversePathAlreadyVerified(String reversePathString)
public Recipient reversePath2Recipient(ReversePath reversePath)