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 classSmtpWriter.AuthMethodstatic classSmtpWriter.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.SessioncreateSession(Map<String,String> customProperties)SmtpWriter.AuthMethodgetAuthMethod()char[]getAuthPass()StringgetAuthUser()SmtpWriter.CryptMethodgetCryptMethod()StringgetHost()intgetPort()AbstractMailWriter.TypegetType()protected javax.mail.TransportopenTransport(javax.mail.Session session)voidsetAuthMethod(SmtpWriter.AuthMethod authMethod)voidsetAuthPass(char[] authPass)voidsetAuthUser(String authUser)voidsetCryptMethod(SmtpWriter.CryptMethod cryptMethod)voidsetHost(String host)voidsetPort(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:
createSessionin 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:
getTypein classAbstractMailWriter
-
openTransport
protected javax.mail.Transport openTransport(javax.mail.Session session) throws javax.mail.MessagingException- Specified by:
openTransportin 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)
-
-