Class ImapReader
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.openindex.openestate.tool.mail.io.AbstractMailReader
-
- com.openindex.openestate.tool.mail.io.ImapReader
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
public class ImapReader extends AbstractMailReader
ImapReader.- Author:
- Andreas Rudolph
- See Also:
- IMAP-API, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImapReader.AuthMethod
static class
ImapReader.CryptMethod
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.mail.io.AbstractMailReader
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>
-
-
Field Summary
-
Fields inherited from class com.openindex.openestate.tool.mail.io.AbstractMailReader
DEBUG
-
-
Constructor Summary
Constructors Constructor Description ImapReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.Session
createSession(Map<String,String> customProperties)
ImapReader.AuthMethod
getAuthMethod()
char[]
getAuthPass()
String
getAuthUser()
ImapReader.CryptMethod
getCryptMethod()
String
getHost()
int
getPort()
AbstractMailReader.Type
getType()
boolean
isIdleEnabled()
protected javax.mail.Store
openStore(javax.mail.Session session)
void
setAuthMethod(ImapReader.AuthMethod authMethod)
void
setAuthPass(char[] authPass)
void
setAuthUser(String authUser)
void
setCryptMethod(ImapReader.CryptMethod cryptMethod)
void
setHost(String host)
void
setIdleEnabled(boolean enabled)
void
setPort(int port)
-
Methods inherited from class com.openindex.openestate.tool.mail.io.AbstractMailReader
createSession, createStore, 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 classAbstractMailReader
-
getAuthMethod
public ImapReader.AuthMethod getAuthMethod()
-
getAuthPass
public char[] getAuthPass()
-
getAuthUser
public String getAuthUser()
-
getCryptMethod
public ImapReader.CryptMethod getCryptMethod()
-
getHost
public String getHost()
-
getPort
public int getPort()
-
getType
public final AbstractMailReader.Type getType()
- Specified by:
getType
in classAbstractMailReader
-
isIdleEnabled
public boolean isIdleEnabled()
-
openStore
protected javax.mail.Store openStore(javax.mail.Session session) throws javax.mail.MessagingException
- Specified by:
openStore
in classAbstractMailReader
- Throws:
javax.mail.MessagingException
-
setAuthMethod
public void setAuthMethod(ImapReader.AuthMethod authMethod)
-
setAuthPass
public void setAuthPass(char[] authPass)
-
setAuthUser
public void setAuthUser(String authUser)
-
setCryptMethod
public void setCryptMethod(ImapReader.CryptMethod cryptMethod)
-
setHost
public void setHost(String host)
-
setIdleEnabled
public void setIdleEnabled(boolean enabled)
-
setPort
public void setPort(int port)
-
-