de.saly.javamail.mock2
Class POP3MockStore
java.lang.Object
javax.mail.Service
javax.mail.Store
com.sun.mail.pop3.POP3Store
de.saly.javamail.mock2.POP3MockStore
- Direct Known Subclasses:
- POP3SSLMockStore
public class POP3MockStore
- extends com.sun.mail.pop3.POP3Store
Field Summary |
protected org.slf4j.Logger |
logger
|
Fields inherited from class javax.mail.Service |
debug, session, url |
Constructor Summary |
POP3MockStore(javax.mail.Session session,
javax.mail.URLName urlname)
|
POP3MockStore(javax.mail.Session session,
javax.mail.URLName url,
String name,
boolean isSSL)
|
Methods inherited from class com.sun.mail.pop3.POP3Store |
finalize, isSSL |
Methods inherited from class javax.mail.Store |
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
Methods inherited from class javax.mail.Service |
addConnectionListener, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
logger
protected final org.slf4j.Logger logger
POP3MockStore
public POP3MockStore(javax.mail.Session session,
javax.mail.URLName urlname)
POP3MockStore
public POP3MockStore(javax.mail.Session session,
javax.mail.URLName url,
String name,
boolean isSSL)
capabilities
public Map capabilities()
throws javax.mail.MessagingException
- Overrides:
capabilities
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
checkConnected
protected void checkConnected()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
close
public void close()
throws javax.mail.MessagingException
- Overrides:
close
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
connect
public void connect()
throws javax.mail.MessagingException
- Overrides:
connect
in class javax.mail.Service
- Throws:
javax.mail.MessagingException
connect
public void connect(String user,
String password)
throws javax.mail.MessagingException
- Overrides:
connect
in class javax.mail.Service
- Throws:
javax.mail.MessagingException
connect
public void connect(String host,
String user,
String password)
throws javax.mail.MessagingException
- Overrides:
connect
in class javax.mail.Service
- Throws:
javax.mail.MessagingException
getDefaultFolder
public javax.mail.Folder getDefaultFolder()
throws javax.mail.MessagingException
- Overrides:
getDefaultFolder
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
getFolder
public javax.mail.Folder getFolder(String name)
throws javax.mail.MessagingException
- Overrides:
getFolder
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
getFolder
public javax.mail.Folder getFolder(javax.mail.URLName url)
throws javax.mail.MessagingException
- Overrides:
getFolder
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
isConnected
public boolean isConnected()
- Overrides:
isConnected
in class com.sun.mail.pop3.POP3Store
protocolConnect
protected boolean protocolConnect(String host,
int port,
String user,
String password)
throws javax.mail.MessagingException
- Overrides:
protocolConnect
in class com.sun.mail.pop3.POP3Store
- Throws:
javax.mail.MessagingException
Copyright © 2014. All rights reserved.