|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scaffold.util.ProcessBeanBase
Base implementation of ProcessBean with default functionality.
The only method that must be overridden is
Object execute(Object).
:TODO: Change from BeanUtil.populate to copyProperties in 1.1
version.
| Field Summary |
| Fields inherited from interface org.apache.commons.scaffold.util.ProcessBean |
USER_PROFILE_KEY |
| Constructor Summary | |
ProcessBeanBase()
|
|
| Method Summary | |
java.lang.Object |
execute()
Perform business logic for this bean. |
java.lang.Object |
execute(java.lang.Object parameters)
Perform business logic for this instance by obtaining any properties from the parameters object. |
java.util.Locale |
getLocale()
Return the locale for this bean instance. |
java.lang.String |
getParameter()
Return the parameter. |
java.lang.String |
getRemoteAddr()
Return the String representation of an IP address expressed as an Integer, into the format usually given by the REMOTE_ADDR CGI variable, or ServletRequest.getRemoteAddr(). |
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. |
void |
setLocale(java.util.Locale locale)
Set the locale for this bean instance. |
void |
setParameter(java.lang.String parameter)
Set the parameter. |
void |
setRemoteAddr(java.lang.String remoteAddr)
Set the remoteNode using a String in the format usually given by the REMOTE_ADDR CGI variable, or ServletRequest.getRemoteAddr(). |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessBeanBase()
| Method Detail |
public java.util.Locale getLocale()
ProcessBean
getLocale in interface ProcessBeanpublic void setLocale(java.util.Locale locale)
ProcessBean
setLocale in interface ProcessBeanlocale - The new localepublic java.lang.Integer getRemoteNode()
ProcessBean
getRemoteNode in interface ProcessBeanpublic void setRemoteNode(java.lang.Integer remoteNode)
ProcessBean
setRemoteNode in interface ProcessBeanremoteNode - The new remoteNode.public void setRemoteAddr(java.lang.String remoteAddr)
public java.lang.String getRemoteAddr()
public java.lang.Object getRemoteServer()
ProcessBean
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.
getRemoteServer in interface ProcessBeanpublic void setRemoteServer(java.lang.Object server)
ProcessBean
setRemoteServer in interface ProcessBeanserver - The new serverpublic java.lang.String getParameter()
ProcessBean
getParameter in interface ProcessBeanpublic void setParameter(java.lang.String parameter)
ProcessBean
setParameter in interface ProcessBeanparameter - The new parameter
public java.lang.Object execute()
throws java.lang.Exception
execute in interface ProcessBeanSubclasses - can throw any Exception
java.lang.Exception
public java.lang.Object execute(java.lang.Object parameters)
throws java.lang.Exception
execute in interface ProcessBeanparameters - The map or other object to use with this operation
Subclasses - can throw any Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||