KickJava   Java API By Example, From Geeks To Geeks.

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


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 final class Received {
14   private final String JavaDoc[] _from;
15   private final String JavaDoc[] _by;
16   private final String JavaDoc _via;
17   private final String JavaDoc[] _with;
18   private final AddrSpec _msg_id;
19   private final AddrSpec _for;
20   private final DateTime datetime;
21   
22   /**
23    * @param _from
24    * @param _by
25    * @param _via
26    * @param _with
27    * @param _msg_id
28    * @param _for
29    */

30   Received(final String JavaDoc[] _from, final String JavaDoc[] _by, final String JavaDoc _via,
31       final String JavaDoc[] _with, final AddrSpec _msg_id, final AddrSpec _for,
32       final DateTime dt) {
33     super();
34     this._from = _from;
35     this._by = _by;
36     this._via = _via;
37     this._with = _with;
38     this._msg_id = _msg_id;
39     this._for = _for;
40     this.datetime = dt;
41   }
42   /**
43    * @return Returns the _for.
44    */

45   public AddrSpec get_for() {
46     return _for;
47   }
48   /**
49    * @return Returns the _from.
50    */

51   public String JavaDoc[] get_from() {
52     return _from;
53   }
54   /**
55    * @return Returns the _msg_id.
56    */

57   public AddrSpec get_msg_id() {
58     return _msg_id;
59   }
60   /**
61    * @return Returns the _via.
62    */

63   public String JavaDoc get_via() {
64     return _via;
65   }
66   /**
67    * @return Returns the _with.
68    */

69   public String JavaDoc[] get_with() {
70     return _with;
71   }
72   
73   public DateTime get_datetime(){
74     return datetime;
75   }
76 }
77
Popular Tags