Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
BizRequestImpl |
|
| 1.0;1 |
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 | 0 | public abstract class BizRequestImpl implements Serializable, BizRequest { |
33 | ||
34 | /** | |
35 | * The locale for this bean instance, if any. | |
36 | */ | |
37 | 0 | private Locale locale = null; |
38 | ||
39 | // See interface for JavaDoc | |
40 | public Locale getSessionLocale() { | |
41 | 0 | return this.locale; |
42 | } | |
43 | ||
44 | // See interface for JavaDoc | |
45 | public void setSessionLocale(Locale locale) { | |
46 | 0 | this.locale = locale; |
47 | 0 | } |
48 | ||
49 | /** | |
50 | * The remoteNode for this bean instance, if any. | |
51 | */ | |
52 | 0 | private Integer remoteNode = null; |
53 | ||
54 | // See interface for JavaDoc | |
55 | public Integer getRemoteNode() { | |
56 | 0 | return this.remoteNode; |
57 | } | |
58 | ||
59 | // See interface for JavaDoc | |
60 | public void setRemoteNode(Integer remoteNode) { | |
61 | 0 | this.remoteNode = remoteNode; |
62 | 0 | } |
63 | ||
64 | // See interface for JavaDoc | |
65 | public void setRemoteHost(String remoteHost) { | |
66 | ||
67 | 0 | setRemoteNode(new Integer(0)); // :FIXME: |
68 | ||
69 | 0 | } |
70 | ||
71 | // See interface for JavaDoc | |
72 | public String getRemoteHost() { | |
73 | ||
74 | 0 | 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 | 0 | private Object server = null; |
87 | ||
88 | // See interface for JavaDoc | |
89 | public Object getRemoteServer() { | |
90 | 0 | return this.server; |
91 | } | |
92 | ||
93 | // See interface for JavaDoc | |
94 | public void setRemoteServer(Object server) { | |
95 | 0 | this.server = server; |
96 | 0 | } |
97 | ||
98 | /** | |
99 | * The parameter | |
100 | */ | |
101 | 0 | private String parameter = null; |
102 | ||
103 | // See interface for JavaDoc | |
104 | public String getParameter() { | |
105 | 0 | return (this.parameter); |
106 | } | |
107 | ||
108 | // See interface for JavaDoc | |
109 | public void setParameter(String parameter) { | |
110 | 0 | this.parameter = parameter; |
111 | 0 | } |
112 | ||
113 | // See interface for JavaDoc | |
114 | public Messages validate(String parameter){ | |
115 | ||
116 | 0 | return null; |
117 | } | |
118 | ||
119 | } // end BizRequestImpl |