KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > pageflow > PreviousActionInfo


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.pageflow;
19
20 import org.apache.struts.action.ActionForm;
21
22 import java.io.Serializable JavaDoc;
23
24 /**
25  * Stores information about a recent action execution within a pageflow -- used with
26  * Used with
27  * <code>navigateTo={@link org.apache.beehive.netui.pageflow.annotations.Jpf.NavigateTo#previousAction Jpf.NavigateTo.previousAction}</code>
28  * on {@link org.apache.beehive.netui.pageflow.annotations.Jpf.Forward Jpf.Forward},
29  * {@link org.apache.beehive.netui.pageflow.annotations.Jpf.SimpleAction Jpf.SimpleAction}, or
30  * {@link org.apache.beehive.netui.pageflow.annotations.Jpf.ConditionalForward Jpf.ConditionalForward}.
31  */

32 public class PreviousActionInfo
33         extends PreviousInfo
34         implements Serializable JavaDoc
35 {
36     private String JavaDoc _actionURI;
37
38     
39     /**
40      * Constructor which accepts an ActionForm and action URI.
41      *
42      * @param form the form that was passed to the action.
43      * @param actionURI the URI that was used to execute the action.
44      * @param queryString the query string from the previous action URI.
45      */

46     public PreviousActionInfo( ActionForm form, String JavaDoc actionURI, String JavaDoc queryString )
47     {
48         super( form, queryString );
49         _actionURI = actionURI;
50     }
51
52     /**
53      * Get the URI that was used to execute the action.
54      *
55      * @return the String URI that was used to execute the action.
56      */

57     public String JavaDoc getActionURI()
58     {
59         return _actionURI;
60     }
61
62     /**
63      * Set the URI that was used to execute the action.
64      *
65      * @param actionURI the URI that was used to execute the action.
66      */

67     public void setActionURI( String JavaDoc actionURI )
68     {
69         _actionURI = actionURI;
70     }
71 }
72
Popular Tags