KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > parsec > rfc822 > SingleAuthentic


1 /*
2  * Created on Dec 20, 2004
3  *
4  * Author Ben Yu
5  */

6 package tests.jfun.parsec.rfc822;
7
8 /**
9  * @author Ben Yu
10  *
11  * Dec 20, 2004
12  */

13 public class SingleAuthentic extends Authentic{
14   private final Mailbox from;
15
16   /**
17    * @param type
18    * @param single
19    * @param mailbox
20    */

21   SingleAuthentic(String JavaDoc type, final Mailbox from) {
22     super(type, true);
23     this.from = from;
24   }
25   /**
26    * @return Returns the from mailbox.
27    */

28   public Mailbox getFrom() {
29     return from;
30   }
31 }
32
Popular Tags