|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softslate.commerce.businessobjects.core.BaseBusinessObject
Abstract superclass for all objects in the business layer.
Field Summary | |
(package private) static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
BaseBusinessObject()
|
Method Summary | |
java.lang.String |
formatDateTime(java.util.Date dateTime)
Formats a Date object into a string suitable for storage in the database. |
void |
initialize(java.util.Map transferMap)
Initializes this business object by copying incoming parameters into its properties. |
java.util.Date |
parseDateTime(java.lang.String dateTime)
Formats a Date object into a string suitable for storage in the database. |
java.lang.String |
prepareRequestData(java.util.Map params,
boolean urlEncode)
Prepares a url-encoded string for use with an HTTP request, given a map of the request's parameters. |
java.lang.String |
sendHTTPPost(java.lang.String urlString,
java.lang.String postData,
boolean followRedirect)
Sends an HTTP request using the POST method to a given URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static org.apache.commons.logging.Log log
Constructor Detail |
public BaseBusinessObject()
Method Detail |
public void initialize(java.util.Map transferMap) throws java.lang.Exception
BusinessObject
BusinessObjectFactory
after object creation.
initialize
in interface BusinessObject
transferMap
- A Map
containing objects such as the
application's DAOFactory
,
SettingsBean
,User
, and
BusinessObjectFactory
.
java.lang.Exception
public java.lang.String formatDateTime(java.util.Date dateTime)
dateTime
-
public java.util.Date parseDateTime(java.lang.String dateTime)
dateTime
-
public java.lang.String prepareRequestData(java.util.Map params, boolean urlEncode) throws java.lang.Exception
params
- A Map of key-value String pairs representing the parameters of
the request.
java.lang.Exception
public java.lang.String sendHTTPPost(java.lang.String urlString, java.lang.String postData, boolean followRedirect) throws java.lang.Exception
urlString
- The URL to send the request to.postData
- A String representing a valid URL-encoded query string.followRedirect
- A boolean indicating whether redirects should be followed.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |