View Javadoc

1   /***
2    *  The contents of this file are subject to the Mozilla Public
3    *  License Version 1.1 (the "License"); you may not use this file
4    *  except in compliance with the License. You may obtain a copy of
5    *  the License at http://www.mozilla.org/MPL/
6    *
7    *  Software distributed under the License is distributed on an "AS
8    *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9    *  implied. See the License for the specific language governing
10   *  rights and limitations under the License.
11   *
12   *  The Original Code is pow2Toolkit library.
13   *
14   *  The Initial Owner of the Original Code is Power Of Two S.R.L.
15   *  Portions created by Power Of Two S.R.L. are Copyright (C) Power Of Two S.R.L.
16   *  All Rights Reserved.
17   *
18   * Contributor(s):
19   */
20  package com.pow2.struts.action;
21  
22  import org.apache.struts.action.ActionMapping;
23  
24  
25  /***
26   *  This class extends the <code>org.apache.struts.action.ActionMapping</code>
27   *  class, adding the <code>validateSession</code> property and the relative
28   *  public "getter" and "setter" methods.
29   *
30   * @author  Luca Fossato
31   * @created  06 June 2002
32   */
33  public class ToolkitActionMapping extends ActionMapping
34  {
35    private boolean validateSession = true;
36  
37   
38    /***
39     *  Gets the validateSession attribute of the ActionMapping object
40     *
41     * @return  The validateSession value
42     */
43    public boolean isValidateSession()
44    {
45      return validateSession;
46    }
47  
48  
49    /***
50     *  Sets the validateSession attribute of the ActionMapping object
51     *
52     * @param  validateSession The new validateSession value
53     */
54    public void setValidateSession(boolean validateSession)
55    {
56      this.validateSession = validateSession;
57    }
58  }