|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.services.mail.Client
The Email Client to test the email bean's functionality.
Usage:
java com.bankframe.services.mail.Client from to subject message
Field Summary | |
static java.lang.String |
JNDI_LOOKUP_NAME
|
static int |
SEND_MAIL
|
Constructor Summary | |
Client()
|
Method Summary | |
void |
callProcessDataPacket(DataPacket data)
This callProcessDataPacket method is responsible for calling the processDataPacket method in the bean. |
DataPacket |
createSendMailDataPacket()
This method creates a DataPacket for sending a new email. |
int |
init(java.lang.String[] args)
The init method takes in command line parameters and initiates variables |
static void |
main(java.lang.String[] args)
This is the main method which makes calls to the relevant email operations depending on what the init method returns. |
void |
sendMail()
This looks up the bean and passes it the data to send the email. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SEND_MAIL
public static final java.lang.String JNDI_LOOKUP_NAME
Constructor Detail |
public Client()
Method Detail |
public void callProcessDataPacket(DataPacket data) throws java.lang.Exception
java.lang.Exception
public DataPacket createSendMailDataPacket()
public int init(java.lang.String[] args)
public static void main(java.lang.String[] args)
public void sendMail()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |