KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > binding > mail > listeners > SessionDescriptor


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2006 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: SessionDescriptor.java 154 28 sept. 06 ofabre $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.binding.mail.listeners;
23
24 /**
25  * This descriptor handles information used to connect to a mail server to read
26  * or send mail.
27  *
28  * @author ofabre - EBM Websourcing
29  *
30  */

31 public class SessionDescriptor {
32
33     /**
34      * Used for both imap and pop3 scheme
35      */

36     private String JavaDoc folder;
37
38     /**
39      * Used only for smtp scheme
40      */

41     private String JavaDoc fromAddress;
42
43     /**
44      * Used for both smtp, imap and pop3 scheme
45      */

46     private String JavaDoc hostname;
47
48     /**
49      * Used for both smtp, imap and pop3 scheme
50      */

51     private String JavaDoc password;
52
53     /**
54      * Used for both imap and pop3 scheme
55      */

56     private String JavaDoc period;
57
58     /**
59      * Used for both smtp, imap and pop3 scheme
60      */

61     private String JavaDoc port;
62
63     /**
64      * Used for both smtp, imap and pop3 scheme
65      */

66     private String JavaDoc scheme;
67
68     /**
69      * Used only for smtp scheme
70      */

71     private String JavaDoc toAddress;
72
73     /**
74      * Used for both smtp, imap and pop3 scheme
75      */

76     private String JavaDoc username;
77
78     public String JavaDoc getFolder() {
79         return folder;
80     }
81
82     public String JavaDoc getFromAddress() {
83         return fromAddress;
84     }
85
86     public String JavaDoc getHostname() {
87         return hostname;
88     }
89
90     public String JavaDoc getPassword() {
91         return password;
92     }
93
94     public String JavaDoc getPeriod() {
95         return period;
96     }
97
98     public String JavaDoc getPort() {
99         return port;
100     }
101
102     public String JavaDoc getScheme() {
103         return scheme;
104     }
105
106     public String JavaDoc getToAddress() {
107         return toAddress;
108     }
109
110     public String JavaDoc getUsername() {
111         return username;
112     }
113
114     public void setFolder(String JavaDoc folder) {
115         this.folder = folder;
116     }
117
118     public void setFromAddress(String JavaDoc fromAddress) {
119         this.fromAddress = fromAddress;
120     }
121
122     public void setHostname(String JavaDoc hostname) {
123         this.hostname = hostname;
124     }
125
126     public void setPassword(String JavaDoc password) {
127         this.password = password;
128     }
129
130     public void setPeriod(String JavaDoc period) {
131         this.period = period;
132     }
133
134     public void setPort(String JavaDoc port) {
135         this.port = port;
136     }
137
138     public void setScheme(String JavaDoc scheme) {
139         this.scheme = scheme;
140     }
141
142     public void setToAddress(String JavaDoc toAddress) {
143         this.toAddress = toAddress;
144     }
145
146     public void setUsername(String JavaDoc username) {
147         this.username = username;
148     }
149
150 }
151
Popular Tags