Mercurial Hosting > nabble
comparison src/fschmidt/util/mail/nomail/MailFactoryImpl.java @ 68:00520880ad02
add fschmidt source
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 05 Oct 2025 17:24:15 -0600 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 67:9d0fefce6985 | 68:00520880ad02 |
|---|---|
| 1 package fschmidt.util.mail.nomail; | |
| 2 | |
| 3 import fschmidt.util.mail.MailFactory; | |
| 4 import fschmidt.util.mail.Mail; | |
| 5 import fschmidt.util.mail.SmtpServer; | |
| 6 import fschmidt.util.mail.Pop3Server; | |
| 7 import fschmidt.util.mail.MailAddress; | |
| 8 import fschmidt.util.mail.MailException; | |
| 9 import fschmidt.util.mail.javamail.MailImpl; | |
| 10 | |
| 11 | |
| 12 public final class MailFactoryImpl implements MailFactory { | |
| 13 | |
| 14 public Mail newMail() { | |
| 15 return new MailImpl(); | |
| 16 } | |
| 17 | |
| 18 public Mail newMail(String rawInput) { | |
| 19 return new MailImpl(rawInput); | |
| 20 } | |
| 21 | |
| 22 public SmtpServer getSmtpServer(String machineName) { | |
| 23 return new SmtpServerImpl(); | |
| 24 } | |
| 25 | |
| 26 public SmtpServer getSmtpServer(String machineName,String username,String password) { | |
| 27 return new SmtpServerImpl(); | |
| 28 } | |
| 29 | |
| 30 public Pop3Server getPop3Server(String machineName,String username,String password) { | |
| 31 return new Pop3ServerImpl(); | |
| 32 } | |
| 33 | |
| 34 public MailAddress parseAddress(String addr) throws MailException { | |
| 35 return fschmidt.util.mail.javamail.MailFactoryImpl.doParseAddress(addr); | |
| 36 } | |
| 37 | |
| 38 public boolean isSendingMail() { | |
| 39 return false; | |
| 40 } | |
| 41 } |
