01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: * $Header:$
18: */
19: package org.apache.beehive.netui.pageflow;
20:
21: import org.apache.struts.action.ActionForm;
22:
23: import java.io.Serializable;
24:
25: /**
26: * Stores information about a recent action execution within a pageflow -- used with
27: * Used with
28: * <code>navigateTo={@link org.apache.beehive.netui.pageflow.annotations.Jpf.NavigateTo#previousAction Jpf.NavigateTo.previousAction}</code>
29: * on {@link org.apache.beehive.netui.pageflow.annotations.Jpf.Forward Jpf.Forward},
30: * {@link org.apache.beehive.netui.pageflow.annotations.Jpf.SimpleAction Jpf.SimpleAction}, or
31: * {@link org.apache.beehive.netui.pageflow.annotations.Jpf.ConditionalForward Jpf.ConditionalForward}.
32: */
33: public class PreviousActionInfo extends PreviousInfo implements
34: Serializable {
35: private String _actionURI;
36:
37: /**
38: * Constructor which accepts an ActionForm and action URI.
39: *
40: * @param form the form that was passed to the action.
41: * @param actionURI the URI that was used to execute the action.
42: * @param queryString the query string from the previous action URI.
43: */
44: public PreviousActionInfo(ActionForm form, String actionURI,
45: String queryString) {
46: super (form, queryString);
47: _actionURI = actionURI;
48: }
49:
50: /**
51: * Get the URI that was used to execute the action.
52: *
53: * @return the String URI that was used to execute the action.
54: */
55: public String getActionURI() {
56: return _actionURI;
57: }
58:
59: /**
60: * Set the URI that was used to execute the action.
61: *
62: * @param actionURI the URI that was used to execute the action.
63: */
64: public void setActionURI(String actionURI) {
65: _actionURI = actionURI;
66: }
67: }
|