|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Nugget
com.nitido.nim.NonCachableNugget
com.nitido.nimx.nuggets.extmail.ExternalMailNugget
com.nitido.nimx.nuggets.extmail.real.ExternalMailNuggetImpl
public class ExternalMailNuggetImpl
Actual implementation of ExternalMailNugget.
Field Summary | |
---|---|
static java.lang.String |
JM_KEY_POP3_CONNECTIONTIMEOUT
|
static java.lang.String |
JM_KEY_POP3_RESETBEFOREQUIT
|
static java.lang.String |
JM_KEY_POP3_TIMEOUT
|
static java.lang.String |
JM_KEY_STORE_PROTOCOL
|
Fields inherited from class com.nitido.nimx.nuggets.extmail.ExternalMailNugget |
---|
DEFAULT_CONNECTIONTIMEOUT, DEFAULT_TIMEOUT, KEY_JAVAMAIL_DEBUG, KEY_POP3_CONNECTIONTIMEOUT, KEY_POP3_TIMEOUT |
Fields inherited from class com.nitido.nim.Nugget |
---|
_entity, _nim, _nuggetName, _settings |
Constructor Summary | |
---|---|
ExternalMailNuggetImpl(NuggetVisa visa)
Default constructor |
Method Summary | |
---|---|
void |
activate()
Used by NiM Nugget mechnanism. |
javax.mail.Folder |
connect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password,
boolean leaveMail)
Get the folder that represents the 'root' of the mailbox. |
javax.mail.Folder |
connect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password,
boolean leaveMail,
boolean useSSL)
Get the folder that represents the 'root' of the mailbox. |
void |
deactivate()
Used by NiM Nugget mechnanism. |
void |
disconnect()
Complete disconnect from the backend server. |
java.lang.String |
getDescriptor()
Used by NiM Nugget mechnanism. |
protected void |
initImpl()
This method is called by the init() method after the member variables _nuggetName, _entity and _settings are assigned. |
protected boolean |
openFolder(javax.mail.Folder folder)
|
protected void |
settingsToProperties(java.util.Properties props,
java.lang.String settingKey,
java.lang.String propKey,
java.lang.String defaultValue)
|
Methods inherited from class com.nitido.nimx.nuggets.extmail.ExternalMailNugget |
---|
checkBoolean, checkEmail, checkInt, checkNonNull, checkWithDefault, settingsToProperties |
Methods inherited from class com.nitido.nim.NonCachableNugget |
---|
isCachable |
Methods inherited from class com.nitido.nim.Nugget |
---|
destroy, destroyImpl, getEntity, getNuggetName, getSetting, getSettings, init, requestBegin, requestEnd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JM_KEY_STORE_PROTOCOL
public static final java.lang.String JM_KEY_POP3_CONNECTIONTIMEOUT
public static final java.lang.String JM_KEY_POP3_TIMEOUT
public static final java.lang.String JM_KEY_POP3_RESETBEFOREQUIT
Constructor Detail |
---|
public ExternalMailNuggetImpl(NuggetVisa visa)
Method Detail |
---|
protected void initImpl() throws InitializationFailedException, InvalidSettingException
Nugget
initImpl
in class Nugget
InitializationFailedException
- If unable to initialize the nugget with the given parameters.
InvalidSettingException
- If any of the expected initialization settings are null.public javax.mail.Folder connect(java.lang.String host, int port, java.lang.String username, java.lang.String password, boolean leaveMail) throws javax.mail.MessagingException, ExternalMailNuggetException
ExternalMailNugget
connect
in class ExternalMailNugget
host
- The host name of the target external POP3 server.port
- The port of the target external POP3 server.username
- The external POP3 server's login user name.password
- The external POP3 server's login user password.leaveMail
- The flag to indicate whether to leave emails on the external POP3
server after downloaded them.
javax.mail.MessagingException
ExternalMailNuggetException
public javax.mail.Folder connect(java.lang.String host, int port, java.lang.String username, java.lang.String password, boolean leaveMail, boolean useSSL) throws javax.mail.MessagingException, ExternalMailNuggetException
connect
in class ExternalMailNugget
host
- The host name of the target external POP3 server.port
- The port of the target external POP3 server.username
- The external POP3 server's login user name.password
- The external POP3 server's login user password.leaveMail
- The flag to indicate whether to leave emails on the external POP3
server after downloaded them.useSSL
- The flag to indicate whether to use SSL socket to connect to the
external POP3 server.
javax.mail.MessagingException
ExternalMailNuggetException
public void disconnect() throws javax.mail.MessagingException, ExternalMailNuggetException
disconnect
in class ExternalMailNugget
javax.mail.MessagingException
ExternalMailNuggetException
public void activate() throws ActivationException
activate
in class Nugget
ActivationException
- If unable to activate the Nuggetpublic void deactivate() throws ActivationException
deactivate
in class Nugget
ActivationException
- If unable to deactivate the Nuggetpublic java.lang.String getDescriptor()
getDescriptor
in class Nugget
protected void settingsToProperties(java.util.Properties props, java.lang.String settingKey, java.lang.String propKey, java.lang.String defaultValue)
protected boolean openFolder(javax.mail.Folder folder) throws javax.mail.FolderNotFoundException, javax.mail.MessagingException
javax.mail.FolderNotFoundException
javax.mail.MessagingException
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.