|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A helper bean used to encapsulate the runtime
properties needed by a business service
[org.apache.commons.scaffold.util.BizSevice].
This is a whitebox class that is meant to be extended with new properties to meet the requirements of a particular business service.
A number of base properties are provided to meet common needs.
| Field Summary | |
static java.lang.String |
REMOTE_SERVER_KEY
The session attribute key for our remote server object ["REMOTE_SERVER"]. |
static java.lang.String |
SESSION_LOCALE_KEY
The session attribute key for our session locale object ["SESSION_LOCALE"]. |
| Method Summary | |
java.lang.String |
getParameter()
Return the parameter. |
java.lang.Integer |
getRemoteNode()
Return the network address of the client for this bean instance. |
java.lang.Object |
getRemoteServer()
The remote server object for this bean instance, if any. |
java.util.Locale |
getSessionLocale()
Return the locale for this bean instance. |
void |
setParameter(java.lang.String parameter)
Set the parameter. |
void |
setRemoteNode(java.lang.Integer remoteNode)
Set the network address of the client for this bean instance. |
void |
setRemoteServer(java.lang.Object server)
Set the remote server |
void |
setSessionLocale(java.util.Locale locale)
Set the locale for this bean instance. |
Messages |
validate(java.lang.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. |
| Field Detail |
public static final java.lang.String SESSION_LOCALE_KEY
public static final java.lang.String REMOTE_SERVER_KEY
| Method Detail |
public java.util.Locale getSessionLocale()
public void setSessionLocale(java.util.Locale locale)
locale - The new localepublic java.lang.Integer getRemoteNode()
public void setRemoteNode(java.lang.Integer remoteNode)
remoteNode - The new remoteNode.public java.lang.Object getRemoteServer()
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.
public void setRemoteServer(java.lang.Object server)
server - The new serverpublic java.lang.String getParameter()
public void setParameter(java.lang.String parameter)
parameter - The new parameterpublic Messages validate(java.lang.String parameter)
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.
parameter - A general purpose parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||