|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BizRequest
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 String |
REMOTE_SERVER_KEY
The session attribute key for our remote server object ["REMOTE_SERVER"]. |
static String |
SESSION_LOCALE_KEY
The session attribute key for our session locale object ["SESSION_LOCALE"]. |
Method Summary | |
---|---|
String |
getParameter()
Return the parameter. |
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 |
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. |
Field Detail |
---|
static final String SESSION_LOCALE_KEY
static final String REMOTE_SERVER_KEY
Method Detail |
---|
Locale getSessionLocale()
void setSessionLocale(Locale locale)
locale
- The new localeInteger getRemoteNode()
void setRemoteNode(Integer remoteNode)
remoteNode
- The new remoteNode.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.
void setRemoteServer(Object server)
server
- The new serverString getParameter()
void setParameter(String parameter)
parameter
- The new parameterMessages validate(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 |