2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to you under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   *
17   * $Id: State.java 464373 2006-10-16 04:21:54Z rahul $
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      // -------------------------------------------------------------- Properties
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  }