org.apache.commons.scaffold.util
Class BizRequestImpl

java.lang.Object
  extended by org.apache.commons.scaffold.util.BizRequestImpl
All Implemented Interfaces:
Serializable, BizRequest

public abstract class BizRequestImpl
extends Object
implements Serializable, BizRequest

Concrete implementation of a business request. [org,apache.commons.util.BizRequest]

Version:
$Revision: 155464 $ $Date: 2005-02-26 13:26:54 +0000 (Sat, 26 Feb 2005) $
Author:
Ted Husted
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.commons.scaffold.util.BizRequest
REMOTE_SERVER_KEY, SESSION_LOCALE_KEY
 
Constructor Summary
BizRequestImpl()
           
 
Method Summary
 String getParameter()
          Return the parameter.
 String getRemoteHost()
           
 Integer getRemoteNode()
          Return the network address of the client for this bean instance.
 Object getRemoteServer()
          The remote server object for this bean instance, if any.
 Locale getSessionLocale()
          Return the locale for this bean instance.
 void setParameter(String parameter)
          Set the parameter.
 void setRemoteHost(String remoteHost)
           
 void setRemoteNode(Integer remoteNode)
          Set the network address of the client for this bean instance.
 void setRemoteServer(Object server)
          Set the remote server
 void setSessionLocale(Locale locale)
          Set the locale for this bean instance.
 Messages validate(String parameter)
          Validate the properties that have been set for this business request, and return an Messages object that encapsulates any validation errors that have been found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BizRequestImpl

public BizRequestImpl()
Method Detail

getSessionLocale

public Locale getSessionLocale()
Description copied from interface: BizRequest
Return the locale for this bean instance.

Specified by:
getSessionLocale in interface BizRequest
Returns:
the locale

setSessionLocale

public void setSessionLocale(Locale locale)
Description copied from interface: BizRequest
Set the locale for this bean instance.

Specified by:
setSessionLocale in interface BizRequest
Parameters:
locale - The new locale

getRemoteNode

public Integer getRemoteNode()
Description copied from interface: BizRequest
Return the network address of the client for this bean instance.

Specified by:
getRemoteNode in interface BizRequest
Returns:
the network address.

setRemoteNode

public void setRemoteNode(Integer remoteNode)
Description copied from interface: BizRequest
Set the network address of the client for this bean instance.

Specified by:
setRemoteNode in interface BizRequest
Parameters:
remoteNode - The new remoteNode.

setRemoteHost

public void setRemoteHost(String remoteHost)

getRemoteHost

public String getRemoteHost()

getRemoteServer

public Object getRemoteServer()
Description copied from interface: BizRequest
The remote server object for this bean instance, if any.

This is often an application-scope object that can be used to process a JDBC query or equivalent. By default, the ProcessAction will set this to any application scope object found under the key BaseAction.REMOTE_SERVER or to null.

Specified by:
getRemoteServer in interface BizRequest
Returns:
the remote server

setRemoteServer

public void setRemoteServer(Object server)
Description copied from interface: BizRequest
Set the remote server

Specified by:
setRemoteServer in interface BizRequest
Parameters:
server - The new server

getParameter

public String getParameter()
Description copied from interface: BizRequest
Return the parameter.

Specified by:
getParameter in interface BizRequest

setParameter

public void setParameter(String parameter)
Description copied from interface: BizRequest
Set the parameter.

Specified by:
setParameter in interface BizRequest
Parameters:
parameter - The new parameter

validate

public Messages validate(String parameter)
Description copied from interface: BizRequest
Validate the properties that have been set for this business request, and return an Messages object that encapsulates any validation errors that have been found. If no errors are found, return null or an Messages object with no recorded error messages.

Specified by:
validate in interface BizRequest
Parameters:
parameter - A general purpose parameter


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.