Class AbstractMailReader
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.mail.io.AbstractMailReader
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- Direct Known Subclasses:
ImapReader,Pop3Reader
public abstract class AbstractMailReader extends HashMap<String,String>
AbstractMailReader.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractMailReader.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>
-
-
Constructor Summary
Constructors Constructor Description AbstractMailReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.mail.SessioncreateSession()abstract javax.mail.SessioncreateSession(Map<String,String> customProperties)javax.mail.StorecreateStore(javax.mail.Session session)abstract AbstractMailReader.TypegetType()booleanisDebug()protected abstract javax.mail.StoreopenStore(javax.mail.Session session)voidsetDebug(boolean debug)-
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
-
-
-
-
Field Detail
-
DEBUG
public static final String DEBUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSession
public final javax.mail.Session createSession()
-
createSession
public abstract javax.mail.Session createSession(Map<String,String> customProperties)
-
createStore
public javax.mail.Store createStore(javax.mail.Session session) throws javax.mail.NoSuchProviderException, javax.mail.MessagingException- Throws:
javax.mail.NoSuchProviderExceptionjavax.mail.MessagingException
-
getType
public abstract AbstractMailReader.Type getType()
-
isDebug
public boolean isDebug()
-
openStore
protected abstract javax.mail.Store openStore(javax.mail.Session session) throws javax.mail.NoSuchProviderException, javax.mail.MessagingException- Throws:
javax.mail.NoSuchProviderExceptionjavax.mail.MessagingException
-
setDebug
public void setDebug(boolean debug)
-
-