|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEmailValidationHandler
IEmailValidationHandler is created to set the enail configuration and to fetch basic information from mailbox.
Method Summary | |
---|---|
int |
getMessageCount(java.lang.String uniqueId,
java.lang.String mailbox)
To get the messages count for specified mail box |
int |
getMessageCount(java.lang.String uniqueId,
java.lang.String mailbox,
java.lang.String subject)
To get the messages count for specified mail box with specified subject line |
int |
getNewMessageCount(java.lang.String uniqueId,
java.lang.String mailbox)
To get the new messages count for specified mail box |
boolean |
hasNewMessages(java.lang.String uniqueId,
java.lang.String mailbox)
To check whether the specified mail box has new messages |
boolean |
isEmailConnectionValid(java.lang.String uniqueId)
To check if email connection specified by uniqueId is valid |
boolean |
isMailBoxExists(java.lang.String uniqueId,
java.lang.String mailbox)
To check if specified mail box exists |
boolean |
setEmailConnection(java.lang.String uniqueId,
java.lang.String protocol,
java.lang.String host,
java.lang.String userName,
java.lang.String password)
To register or configure a email connection with TestStudio. |
Method Detail |
---|
int getMessageCount(java.lang.String uniqueId, java.lang.String mailbox)
uniqueId
- unique id referring to the email configurationmailbox
- name of the mail box
int getMessageCount(java.lang.String uniqueId, java.lang.String mailbox, java.lang.String subject)
uniqueId
- unique id referring to the email configurationmailbox
- name of the mail boxsubject
- subject line to look for while searching messages in the
mailbox
int getNewMessageCount(java.lang.String uniqueId, java.lang.String mailbox)
uniqueId
- unique id referring to the email configurationmailbox
- name of the mail box
boolean hasNewMessages(java.lang.String uniqueId, java.lang.String mailbox)
uniqueId
- unique id referring to the email configurationmailbox
- name of the mail box
boolean isEmailConnectionValid(java.lang.String uniqueId)
uniqueId
- unique id referring to the email configuration to test
boolean isMailBoxExists(java.lang.String uniqueId, java.lang.String mailbox)
uniqueId
- unique id referring to the email configurationmailbox
- name of the mail box to check for existence
boolean setEmailConnection(java.lang.String uniqueId, java.lang.String protocol, java.lang.String host, java.lang.String userName, java.lang.String password)
uniqueId
- unique id which should be allocated for each email
configuration. This id is used to refer to the concerned email
connection for doing any email specific action.protocol
- protocol to be used for accessing email account, for eg. SMTP
or POPhost
- host where the mail server residesuserName
- user name for accessing email accountpassword
- password for accessing email account
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |