Class SmtpWriter
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.mail.io.AbstractMailWriter
-
- com.openindex.openestate.tool.mail.io.SmtpWriter
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
public class SmtpWriter extends AbstractMailWriter
SmtpWriter.- Author:
- Andreas Rudolph
- See Also:
- SMTP-API, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmtpWriter.AuthMethod
static class
SmtpWriter.CryptMethod
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.mail.io.AbstractMailWriter
AbstractMailWriter.Type
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class com.openindex.openestate.tool.mail.io.AbstractMailWriter
DEBUG
-
-
Constructor Summary
Constructors Constructor Description SmtpWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.Session
createSession(Map<String,String> customProperties)
SmtpWriter.AuthMethod
getAuthMethod()
char[]
getAuthPass()
String
getAuthUser()
SmtpWriter.CryptMethod
getCryptMethod()
String
getHost()
int
getPort()
AbstractMailWriter.Type
getType()
protected javax.mail.Transport
openTransport(javax.mail.Session session)
void
setAuthMethod(SmtpWriter.AuthMethod authMethod)
void
setAuthPass(char[] authPass)
void
setAuthUser(String authUser)
void
setCryptMethod(SmtpWriter.CryptMethod cryptMethod)
void
setHost(String host)
void
setPort(int port)
-
Methods inherited from class com.openindex.openestate.tool.mail.io.AbstractMailWriter
createSession, createTransport, isDebug, setDebug
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
createSession
public javax.mail.Session createSession(Map<String,String> customProperties)
- Specified by:
createSession
in classAbstractMailWriter
-
getAuthMethod
public SmtpWriter.AuthMethod getAuthMethod()
-
getAuthPass
public char[] getAuthPass()
-
getAuthUser
public String getAuthUser()
-
getCryptMethod
public SmtpWriter.CryptMethod getCryptMethod()
-
getHost
public String getHost()
-
getPort
public int getPort()
-
getType
public final AbstractMailWriter.Type getType()
- Specified by:
getType
in classAbstractMailWriter
-
openTransport
protected javax.mail.Transport openTransport(javax.mail.Session session) throws javax.mail.MessagingException
- Specified by:
openTransport
in classAbstractMailWriter
- Throws:
javax.mail.MessagingException
-
setAuthMethod
public void setAuthMethod(SmtpWriter.AuthMethod authMethod)
-
setAuthPass
public void setAuthPass(char[] authPass)
-
setAuthUser
public void setAuthUser(String authUser)
-
setCryptMethod
public void setCryptMethod(SmtpWriter.CryptMethod cryptMethod)
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
-