com.ibm.commerce.command
Class BeanUtil
java.lang.Object
|
+--com.ibm.commerce.command.BeanUtil
- public class BeanUtil
- extends java.lang.Object
This class does introspection on a bean. It is used to set all the parameters
passed in on a URL with attributes that match a beans properties.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Constructor Summary |
BeanUtil()
BeanUtil constructor comment. |
Method Summary |
static java.util.Properties |
getURLProperties(com.ibm.commerce.command.HttpServletRequest request)
This method takes all the values in a URL and puts them in a Properties list. |
static void |
setAttributes(java.lang.Object obj,
com.ibm.commerce.command.HttpServletRequest request)
This method will set the properties of a DataSourceCommand from an HttpRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
BeanUtil
public BeanUtil()
- BeanUtil constructor comment.
getURLProperties
public static java.util.Properties getURLProperties(com.ibm.commerce.command.HttpServletRequest request)
- This method takes all the values in a URL and puts them in a Properties list.
Since URL parameters may appear more than once, this method is only useful
for parameters that will only contain one value. If there is more than one
value, only the first one is placed in the Properites list.
- Returns:
- Properies the list of properties found in the URL
setAttributes
public static void setAttributes(java.lang.Object obj,
com.ibm.commerce.command.HttpServletRequest request)
- This method will set the properties of a DataSourceCommand from an HttpRequest
- Parameters:
obj
- java.lang.Object the object to set attributes onrequest
- HttpServletRequest the request object