KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > transport > mail > server > MailAddress


1 package org.apache.axis2.transport.mail.server;
2
3 import javax.mail.Address JavaDoc;
4
5 /**
6  * This is a simple implementation to simplify the usage
7  * of the Addresses.
8  * @author Chamil Thanthrimudalige
9  */

10 public class MailAddress extends Address JavaDoc{
11     String JavaDoc mailAddy = null;
12     public MailAddress(String JavaDoc mAddy){
13         this.mailAddy = mAddy;
14     }
15     public boolean equals(Object JavaDoc addr) {
16         return this.mailAddy.equals(addr);
17     }
18     public String JavaDoc getType() {
19         return "text/plain";
20     }
21     public String JavaDoc toString() {
22         return this.mailAddy;
23     }
24 }
Popular Tags