001 /* 002 * Copyright 2001,2004 The Apache Software Foundation. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 package org.apache.commons.scaffold.util; 018 019 020 import java.io.Serializable; 021 import java.util.Locale; 022 023 // ------------------------------------------------------------------------ 78 024 025 /** 026 * Concrete implementation of a business request. 027 * [<code>org,apache.commons.util.BizRequest</code>] 028 * 029 * @author Ted Husted 030 * @version $Revision: 155464 $ $Date: 2005-02-26 13:26:54 +0000 (Sat, 26 Feb 2005) $ 031 */ 032 public abstract class BizRequestImpl implements Serializable, BizRequest { 033 034 /** 035 * The locale for this bean instance, if any. 036 */ 037 private Locale locale = null; 038 039 // See interface for JavaDoc 040 public Locale getSessionLocale() { 041 return this.locale; 042 } 043 044 // See interface for JavaDoc 045 public void setSessionLocale(Locale locale) { 046 this.locale = locale; 047 } 048 049 /** 050 * The remoteNode for this bean instance, if any. 051 */ 052 private Integer remoteNode = null; 053 054 // See interface for JavaDoc 055 public Integer getRemoteNode() { 056 return this.remoteNode; 057 } 058 059 // See interface for JavaDoc 060 public void setRemoteNode(Integer remoteNode) { 061 this.remoteNode = remoteNode; 062 } 063 064 // See interface for JavaDoc 065 public void setRemoteHost(String remoteHost) { 066 067 setRemoteNode(new Integer(0)); // :FIXME: 068 069 } 070 071 // See interface for JavaDoc 072 public String getRemoteHost() { 073 074 return new String("000.000.000.000"); // :FIXME: 075 076 } 077 078 /** 079 * The remote server object for this bean instance, if any. 080 * This is often an application-scope object that can be used 081 * to process a JDBC query or equivalent. 082 * By default, the ProcessAction will set this to any 083 * application scope object found under the key "REMOTE_SERVER", 084 * or to null. 085 */ 086 private Object server = null; 087 088 // See interface for JavaDoc 089 public Object getRemoteServer() { 090 return this.server; 091 } 092 093 // See interface for JavaDoc 094 public void setRemoteServer(Object server) { 095 this.server = server; 096 } 097 098 /** 099 * 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