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: /**
22: * Exception that occurs when a action output has been added to a Forward that resolves to a
23: * {@link org.apache.beehive.netui.pageflow.annotations.Jpf.Forward @Jpf.Forward} annotation marked with
24: * <code>{@link org.apache.beehive.netui.pageflow.annotations.Jpf.Forward#redirect redirect}=true</code>.
25: * Action outputs may not be used on redirect forwards.
26: *
27: * @deprecated Use {@link IllegalActionOutputException} instead.
28: */
29: public class IllegalPageInputException extends
30: IllegalActionOutputException {
31: /**
32: * Constructor.
33: *
34: * @param forwardName the name of the relevant {@link Forward}.
35: * @param actionName the name of the current action being run.
36: * @param flowController the current {@link FlowController} instance.
37: * @param actionOutputName the name of the relevant action output.
38: */
39: public IllegalPageInputException(String forwardName,
40: String actionName, FlowController flowController,
41: String actionOutputName) {
42: super (forwardName, actionName, flowController, actionOutputName);
43: }
44:
45: /**
46: * Get the name of the relevant action output.
47: *
48: * @return a String that is the name of the relevant action output.
49: */
50: public String getPageInputName() {
51: return getActionOutputName();
52: }
53:
54: /**
55: * Set the name of the relevant action output.
56: *
57: * @param actionOutputName a String that is the name of the relevant action output.
58: */
59: public void setPageInputName(String actionOutputName) {
60: setActionOutputName(actionOutputName);
61: }
62: }
|