View Javadoc

1   /*
2    * Copyright 2000-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  package org.apache.portals.bridges.struts;
17  
18  import java.io.Serializable;
19  
20  import org.apache.struts.action.ActionForm;
21  import org.apache.struts.action.ActionMessages;
22  
23  /***
24   * StrutsPortletRenderContext
25   * 
26   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
27   * @version $Id: StrutsPortletRenderContext.java 187139 2004-07-30 00:16:41 +0200 (Fri, 30 Jul 2004) ate $
28   */
29  public class StrutsPortletRenderContext implements Serializable
30  {
31      private String path;
32      private boolean dispatchNamed;
33      private ActionForm actionForm;
34      private boolean requestCancelled;
35      private ActionMessages messages;
36      private ActionMessages errors;
37      public String getPath()
38      {
39          return path;
40      }
41      public void setPath(String path)
42      {
43          this.path = path;
44      }
45      public boolean getDispatchNamed()
46      {
47          return dispatchNamed;
48      }
49      public void setDispatchNamed(boolean namedPath)
50      {
51          this.dispatchNamed = namedPath;
52      }
53      public ActionForm getActionForm()
54      {
55          return actionForm;
56      }
57      public void setActionForm(ActionForm actionForm)
58      {
59          this.actionForm = actionForm;
60      }
61      public boolean isRequestCancelled()
62      {
63          return requestCancelled;
64      }
65      public void setRequestCancelled(boolean requestCancelled)
66      {
67          this.requestCancelled = requestCancelled;
68      }
69      public ActionMessages getMessages()
70      {
71          return messages;
72      }
73      public void setMessages(ActionMessages messages)
74      {
75          this.messages = messages;
76      }
77      public ActionMessages getErrors()
78      {
79          return errors;
80      }
81      public void setErrors(ActionMessages errors)
82      {
83          this.errors = errors;
84      }
85  }