KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > pageflow > interceptor > action > AfterNestedInterceptContext


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.interceptor.action;
19
20 import org.apache.beehive.netui.pageflow.PageFlowController;
21
22 import javax.servlet.http.HttpServletRequest JavaDoc;
23 import javax.servlet.http.HttpServletResponse JavaDoc;
24 import javax.servlet.ServletContext JavaDoc;
25
26 /**
27  * Context passed to {@link ActionInterceptor#afterNestedIntercept}.
28  */

29 public class AfterNestedInterceptContext
30         extends ActionInterceptorContext
31 {
32     private String JavaDoc _returnAction;
33
34     public AfterNestedInterceptContext( HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response,
35                                         ServletContext JavaDoc servletContext, PageFlowController controller,
36                                         InterceptorForward originalForward, String JavaDoc actionName,
37                                         String JavaDoc returnAction )
38     {
39         super( request, response, servletContext, controller, originalForward, actionName );
40         _returnAction = returnAction;
41     }
42     
43     /**
44      * Get the return action from the nested page flow that intercepted the original page flow's action.
45      */

46     public String JavaDoc getReturnAction()
47     {
48         return _returnAction;
49     }
50 }
51
Popular Tags