View Javadoc

1   /*
2    * Copyright 2001,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  
17  package org.apache.commons.scaffold.util;
18  
19  
20  import java.io.Serializable;
21  import java.util.Locale;
22  
23  // ------------------------------------------------------------------------ 78
24  
25  /**
26   * Concrete implementation of a business request.
27   * [<code>org,apache.commons.util.BizRequest</code>] 
28   *
29   * @author Ted Husted
30   * @version $Revision: 155464 $ $Date: 2005-02-26 13:26:54 +0000 (Sat, 26 Feb 2005) $
31   */
32  public abstract class BizRequestImpl implements Serializable, BizRequest {
33  
34      /**
35       * The locale for this bean instance, if any.
36       */
37      private Locale locale = null;
38  
39  	// See interface for JavaDoc
40      public Locale getSessionLocale() {
41          return this.locale;
42      }
43  
44  	// See interface for JavaDoc
45      public void setSessionLocale(Locale locale) {
46          this.locale = locale;
47      }
48  
49      /**
50       * The remoteNode for this bean instance, if any.
51       */
52      private Integer remoteNode = null;
53  
54  	// See interface for JavaDoc
55      public Integer getRemoteNode() {
56          return this.remoteNode;
57      }
58  
59  	// See interface for JavaDoc
60      public void setRemoteNode(Integer remoteNode) {
61          this.remoteNode = remoteNode;
62      }
63  
64  	// See interface for JavaDoc
65      public void setRemoteHost(String remoteHost) {
66  
67          setRemoteNode(new Integer(0)); // :FIXME: 
68  
69      }
70  
71  	// See interface for JavaDoc
72      public String getRemoteHost() {
73  
74          return new String("000.000.000.000"); // :FIXME: 
75  
76      }
77  
78      /**
79       * The remote server object for this bean instance, if any.
80       * This is often an application-scope object that can be used
81       * to process a JDBC query or equivalent.
82       * By default, the ProcessAction will set this to any
83       * application scope object found under the key "REMOTE_SERVER",
84       * or to null.
85       */
86      private Object server = null;
87  
88  	// See interface for JavaDoc
89      public Object getRemoteServer() {
90          return this.server;
91      }
92  
93  	// See interface for JavaDoc
94      public void setRemoteServer(Object server) {
95          this.server = server;
96      }
97  
98      /**
99       * The parameter
100      */
101     private String parameter = null;
102 
103 	// See interface for JavaDoc
104     public String getParameter() {
105         return (this.parameter);
106     }
107 
108 	// See interface for JavaDoc
109     public void setParameter(String parameter) {
110         this.parameter = parameter;
111     }
112 
113 	// See interface for JavaDoc
114     public Messages validate(String parameter){ 
115 		
116 		return null;
117 	}
118 
119 } // end BizRequestImpl