KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > scalagent > joram > mom > dest > mail > JavaMailTopicImplMBean


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2003 - 2007 ScalAgent Distributed Technologies
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 any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  *
20  * Initial developer(s): Nicolas Tachker (ScalAgent)
21  * Contributor(s):
22  */

23 package com.scalagent.joram.mom.dest.mail;
24
25 import org.objectweb.joram.mom.dest.TopicImplMBean;
26
27 public interface JavaMailTopicImplMBean extends TopicImplMBean {
28   /**
29    * Returns the default SMTP server for outgoing mail.
30    *
31    * @return the default SMTP server.
32    */

33   String JavaDoc getSMTPServer();
34
35   /**
36    * Sets or unsets the default SMTP server for outgoing mail.
37    *
38    * @param period The default SMTP server or null for unsetting
39    * previous value.
40    */

41   void setSMTPServer(String JavaDoc smtpServer);
42
43   /**
44    * Returns the default <code>to</code> field.
45    *
46    * @return the default <code>to</code> field.
47    */

48   String JavaDoc getDefaultTo();
49
50   /**
51    * Sets or unsets the default <code>to</code> field.
52    *
53    * @param to The default <code>to</code> field or null for unsetting
54    * previous value.
55    */

56   void setDefaultTo(String JavaDoc to);
57
58   /**
59    * Returns the default <code>cc</code> field.
60    *
61    * @return the default <code>cc</code> field.
62    */

63   String JavaDoc getDefaultCC();
64
65   /**
66    * Sets or unsets the default <code>cc</code> field.
67    *
68    * @param cc The default <code>cc</code> field or null for unsetting
69    * previous value.
70    */

71   void setDefaultCC(String JavaDoc cc);
72
73   /**
74    * Returns the default <code>bcc</code> field.
75    *
76    * @return the default <code>bcc</code> field.
77    */

78   String JavaDoc getDefaultBcc();
79
80   /**
81    * Sets or unsets the default <code>bcc</code> field.
82    *
83    * @param bcc The default <code>bcc</code> field or null for unsetting
84    * previous value.
85    */

86   void setDefaultBcc(String JavaDoc bcc);
87
88   /**
89    * Returns the default <code>from</code> field.
90    *
91    * @return the default <code>from</code> field.
92    */

93   String JavaDoc getDefaultFrom();
94
95   /**
96    * Sets or unsets the default <code>from</code> field.
97    *
98    * @param from The default <code>from</code> field or null for unsetting
99    * previous value.
100    */

101   void setDefaultFrom(String JavaDoc from);
102
103   /**
104    * Returns the default <code>subject</code> field.
105    *
106    * @return the default <code>subject</code> field.
107    */

108   String JavaDoc getDefaultSubject();
109
110   /**
111    * Sets or unsets the default <code>subject</code> field.
112    *
113    * @param subject The default <code>subject</code> field or null for
114    * unsetting previous value.
115    */

116   void setDefaultSubject(String JavaDoc subject);
117
118   /**
119    * Returns the default <code>selector</code>.
120    *
121    * @return the default <code>selector</code>.
122    */

123   String JavaDoc getDefaultSelector();
124
125   /**
126    * Sets or unsets the default <code>selector</code>.
127    *
128    * @param selector The default <code>selector</code> or null for
129    * unsetting previous value.
130    */

131   void setDefaultSelector(String JavaDoc selector);
132
133   /**
134    * Returns the period value to collect mail, -1 if not set.
135    *
136    * @return the period value to collect mail; -1 if not set.
137    */

138   long getPopPeriod();
139
140   /**
141    * Sets or unsets the period value to collect mail.
142    *
143    * @param period The period value to collect mail or -1 for unsetting
144    * previous value.
145    */

146   void setPopPeriod(long period);
147
148   /**
149    * Returns the pop server for incoming mail.
150    *
151    * @return the pop server for incoming mail.
152    */

153   String JavaDoc getPopServer();
154
155   /**
156    * Sets or unsets the pop server for incoming mail.
157    *
158    * @param server The pop server or null for unsetting previous value.
159    */

160   void setPopServer(String JavaDoc server);
161
162   /**
163    * Returns the username for pop account.
164    *
165    * @return the username for pop account.
166    */

167   String JavaDoc getPopUser();
168
169   /**
170    * Sets or unsets the username for pop account.
171    *
172    * @param user The username for pop account or null for
173    * unsetting previous value.
174    */

175   void setPopUser(String JavaDoc user);
176
177   /**
178    * Returns the password for pop account.
179    *
180    * @return the password for pop account.
181    */

182   String JavaDoc getPopPassword();
183
184   /**
185    * Sets or unsets the password for pop account.
186    *
187    * @param pass The password for pop account or null for
188    * unsetting previous value.
189    */

190   void setPopPassword(String JavaDoc pass);
191
192   /**
193    * Returns the default <code>expunge</code> field.
194    *
195    * @return the default <code>expunge</code> field.
196    */

197   boolean getExpunge();
198
199   /**
200    * Sets or unsets the default <code>expunge</code> field.
201    *
202    * @param expunge The default <code>expunge</code> field or null for
203    * unsetting previous value.
204    */

205   void setExpunge(boolean expunge);
206 }
207
Popular Tags