KickJava   Java API By Example, From Geeks To Geeks.

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


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 Source {
14   private final Trace trace;
15   private final AuthenticatedAddress originator;
16   private final AuthenticatedAddress sent;
17   
18   /**
19    * @param trace
20    * @param originator
21    * @param sent
22    */

23   Source(final Trace trace, final AuthenticatedAddress originator,
24       final AuthenticatedAddress sent) {
25     super();
26     this.trace = trace;
27     this.originator = originator;
28     this.sent = sent;
29   }
30   /**
31    * @return Returns the originator.
32    */

33   public AuthenticatedAddress getOriginator() {
34     return originator;
35   }
36   /**
37    * @return Returns the sent.
38    */

39   public AuthenticatedAddress getSent() {
40     return sent;
41   }
42   /**
43    * @return Returns the trace.
44    */

45   public Trace getTrace() {
46     return trace;
47   }
48 }
49
Popular Tags