Class MailAddressFactory


  • public class MailAddressFactory
    extends Object
    MailAddressFactory creates mail address related objects from strings.
    • Constructor Detail

      • MailAddressFactory

        public MailAddressFactory()
    • Method Detail

      • createRecipient

        public Recipient createRecipient​(String recipientString)
                                  throws java.text.ParseException
        Parses the specified string and creates a Recipient instance.
        Parameters:
        recipientString - the recipient parameter of the RCPT SMTP command, without the enclosing angle bracket.
        Throws:
        java.text.ParseException
      • createRecipientAlreadyVerified

        public Recipient createRecipientAlreadyVerified​(String recipientString)
      • createRemotePartFromDisplayableText

        public RemotePart createRemotePartFromDisplayableText​(String displayableText)
        Creates a 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.
      • createReversePath

        public ReversePath createReversePath​(String reversePathString)
                                      throws java.text.ParseException
        Throws:
        java.text.ParseException
      • createReversePathAlreadyVerified

        public ReversePath createReversePathAlreadyVerified​(String reversePathString)