|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.response.ResponseWrapper
com.pushtotest.tool.response.MailResponse
public class MailResponse
| Field Summary |
|---|
| Fields inherited from class com.pushtotest.tool.response.ResponseWrapper |
|---|
content, datatime, parameters, parent, responsecode, responseMessage, setuptime, totaltime |
| Constructor Summary | |
|---|---|
MailResponse()
|
|
| Method Summary | |
|---|---|
void |
close(boolean expungeFlag)
Close the connection to the mail host. |
java.lang.String |
getFolder()
Get the Folder name. |
javax.mail.Message[] |
getMessages()
getMessages returns an array of Message objects. |
java.lang.String |
getProtocol()
Get the protocol to receive messages |
java.lang.String |
id()
Returns an id for this protocol. |
void |
setFolder(java.lang.String thename)
Sets the Folder name. |
void |
setHost(java.lang.String thehost)
Set the host name, does not include any path information |
void |
setPassword(java.lang.String thepass)
Set the host name, does not include any path information |
int |
setPermission()
Get the Folder permission value. |
void |
setPermission(int perm)
Sets the Folder permission. |
void |
setProtocol(java.lang.String theprot)
Set the protocol to receive messages, pop3 by default |
void |
setUserName(java.lang.String theuser)
Set the host name, does not include any path information |
java.lang.String |
toString()
Returns a string representation of all of the content that was returned from the server that made up this Response. |
| Methods inherited from class com.pushtotest.tool.response.ResponseWrapper |
|---|
appendParameter, appendParameters, getContent, getContentSize, getDataTime, getParameterKeys, getParameterValue, getParameterValues, getParentProtocol, getResponseCode, getResponseMessage, getSetupTime, getTotalTime, setContent, setDataTime, setParameter, setParameters, setParentProtocol, setResponseCode, setResponseMessage, setSetupTime, setTotalTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MailResponse()
| Method Detail |
|---|
public void setHost(java.lang.String thehost)
public void setUserName(java.lang.String theuser)
public void setPassword(java.lang.String thepass)
public java.lang.String id()
id in interface Responseid in class ResponseWrapperpublic void setPermission(int perm)
public int setPermission()
public void setProtocol(java.lang.String theprot)
public java.lang.String getProtocol()
public void setFolder(java.lang.String thename)
public java.lang.String getFolder()
public javax.mail.Message[] getMessages()
throws ToolException
ToolException
public void close(boolean expungeFlag)
throws ToolException
Set - to true if you opened the connection using Folder.READ_WRITE and deleted
messages. This will expunge the deleted messages.
ToolExceptionpublic java.lang.String toString()
ResponseWrapper
toString in interface ResponsetoString in class ResponseWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||