|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.scaffold.util.ProcessBeanBase
public abstract class 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 | |
---|---|
Object |
execute()
Perform business logic for this bean. |
Object |
execute(Object parameters)
Perform business logic for this instance by obtaining any properties from the parameters object. |
Locale |
getLocale()
Return the locale for this bean instance. |
String |
getParameter()
Return the parameter. |
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(). |
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. |
void |
setLocale(Locale locale)
Set the locale for this bean instance. |
void |
setParameter(String parameter)
Set the parameter. |
void |
setRemoteAddr(String remoteAddr)
Set the remoteNode using a String in the format usually given by the REMOTE_ADDR CGI variable, or ServletRequest.getRemoteAddr(). |
void |
setRemoteNode(Integer remoteNode)
Set the network address of the client for this bean instance. |
void |
setRemoteServer(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 Locale getLocale()
ProcessBean
getLocale
in interface ProcessBean
public void setLocale(Locale locale)
ProcessBean
setLocale
in interface ProcessBean
locale
- The new localepublic Integer getRemoteNode()
ProcessBean
getRemoteNode
in interface ProcessBean
public void setRemoteNode(Integer remoteNode)
ProcessBean
setRemoteNode
in interface ProcessBean
remoteNode
- The new remoteNode.public void setRemoteAddr(String remoteAddr)
public String getRemoteAddr()
public 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 ProcessBean
public void setRemoteServer(Object server)
ProcessBean
setRemoteServer
in interface ProcessBean
server
- The new serverpublic String getParameter()
ProcessBean
getParameter
in interface ProcessBean
public void setParameter(String parameter)
ProcessBean
setParameter
in interface ProcessBean
parameter
- The new parameterpublic Object execute() throws Exception
execute
in interface ProcessBean
Subclasses
- can throw any Exception
Exception
public Object execute(Object parameters) throws Exception
execute
in interface ProcessBean
parameters
- The map or other object to use with this operation
Subclasses
- can throw any Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |