public abstract class AbstractMailWriter extends HashMap<String,String>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMailWriter.Type |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AbstractMailWriter() |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Session |
createSession() |
abstract javax.mail.Session |
createSession(Map<String,String> customProperties) |
javax.mail.Transport |
createTransport(javax.mail.Session session) |
abstract AbstractMailWriter.Type |
getType() |
boolean |
isDebug() |
protected abstract javax.mail.Transport |
openTransport(javax.mail.Session session) |
void |
setDebug(boolean debug) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final String DEBUG
public final javax.mail.Session createSession()
public javax.mail.Transport createTransport(javax.mail.Session session)
throws javax.mail.NoSuchProviderException,
javax.mail.MessagingException
javax.mail.NoSuchProviderExceptionjavax.mail.MessagingExceptionpublic abstract AbstractMailWriter.Type getType()
public boolean isDebug()
protected abstract javax.mail.Transport openTransport(javax.mail.Session session)
throws javax.mail.NoSuchProviderException,
javax.mail.MessagingException
javax.mail.NoSuchProviderExceptionjavax.mail.MessagingExceptionpublic void setDebug(boolean debug)
Copyright © 2015 OpenEstate. All rights reserved.