2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.shale.examples.mailreader;
21
22 import org.apache.struts.apps.mailreader.dao.User;
23
24
25 /***
26 * <p>In the absence of a <code>DialogController</code>, provide some
27 * properties that can be used to save our state information.</p>
28 */
29
30 public class State {
31
32
33
34
35 /***
36 * <p>Host name used to select which subscription to process.</p>
37 */
38 private String host = null;
39
40 /***
41 * @return Returns the host.
42 */
43 public String getHost() {
44 return this.host;
45 }
46
47 /***
48 * @param host The host to set.
49 */
50 public void setHost(String host) {
51 this.host = host;
52 }
53
54
55 /***
56 * <p>Transaction processing mode.</p>
57 */
58 private String mode = null;
59
60 /***
61 * @return Returns the mode.
62 */
63 public String getMode() {
64 return this.mode;
65 }
66
67 /***
68 * @param mode The mode to set.
69 */
70 public void setMode(String mode) {
71 this.mode = mode;
72 }
73
74
75 /***
76 * <p>The currently logged on <code>User</code>.</p>
77 */
78 private User user = null;
79
80 /***
81 * @return Returns the user.
82 */
83 public User getUser() {
84 return this.user;
85 }
86
87 /***
88 * @param user The user to set.
89 */
90 public void setUser(User user) {
91 this.user = user;
92 }
93
94
95 }