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 class
AbstractMailReader.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.Session
createSession()
abstract javax.mail.Session
createSession(Map<String,String> customProperties)
javax.mail.Store
createStore(javax.mail.Session session)
abstract AbstractMailReader.Type
getType()
boolean
isDebug()
protected abstract javax.mail.Store
openStore(javax.mail.Session session)
void
setDebug(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.NoSuchProviderException
javax.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.NoSuchProviderException
javax.mail.MessagingException
-
setDebug
public void setDebug(boolean debug)
-
-