public class CommerceMessageImpl extends java.lang.Object implements CommerceMessage
This is an implementation of the CommerceMessage interface. It is here to simplify the matter of implementing this interface.
CommerceMessage,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
CommerceMessageImpl()
Initializes the
sessionId and
parentSessionId properties of this message when this
message is fired in context of HTTP request. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
appendBaseToString(java.lang.StringBuffer pBuf)
Returns readable string appending the contents of this Message with
the parameter
pBuf passed. |
java.lang.String |
getId()
This method returns the id of this message in an unspecified format.
|
java.lang.String |
getOriginalId()
Get the original message id as it came from the
originalSource, if there is one. |
java.lang.String |
getOriginalSource()
This is the original source of data for this message, if there is one.
|
java.lang.String |
getOriginalUserId()
This method returns the id of the end user whose action initiated this request,
associated with
originalSource and originalId. |
java.lang.String |
getParentSessionId()
Returns the parent session id.
|
java.lang.String |
getSessionId()
Returns the current session id associated with the request when
this message is sent in the context of an HTTP request.
|
java.lang.String |
getSiteId()
Returns the site id associated with the event
|
java.lang.String |
getSource()
This method returns an arbitrary string that identifies the source of the the message.
|
java.lang.String |
getType()
return the TYPE of the message
|
java.lang.String |
getUserId()
This method returns the id of the most recent end user who acted on this message, if there
was one.
|
void |
setId(java.lang.String pId)
Set the id of this message.
|
void |
setOriginalId(java.lang.String pOriginalId) |
void |
setOriginalSource(java.lang.String pOriginalSource) |
void |
setOriginalUserId(java.lang.String pOriginalUserId) |
void |
setParentSessionId(java.lang.String pParentSessionId)
Sets the parent session id.
|
void |
setSessionId(java.lang.String pSessionId)
Sets the session id
|
void |
setSiteId(java.lang.String pSiteId)
The site id associated with the event
|
void |
setSource(java.lang.String pSource)
Set the source of this message.
|
void |
setUserId(java.lang.String pUserId)
Set the user id.
|
public CommerceMessageImpl()
sessionId and
parentSessionId properties of this message when this
message is fired in context of HTTP request.public java.lang.String getSource()
getSource in interface CommerceMessagepublic void setSource(java.lang.String pSource)
setSource in interface CommerceMessagepublic java.lang.String getId()
getId in interface CommerceMessagepublic void setId(java.lang.String pId)
setId in interface CommerceMessagepublic java.lang.String getUserId()
getUserId in interface CommerceMessagepublic void setUserId(java.lang.String pUserId)
setUserId in interface CommerceMessagepublic java.lang.String getOriginalSource()
getOriginalSource in interface CommerceMessagepublic void setOriginalSource(java.lang.String pOriginalSource)
public java.lang.String getOriginalId()
originalSource, if there is one.getOriginalId in interface CommerceMessagepublic void setOriginalId(java.lang.String pOriginalId)
public java.lang.String getOriginalUserId()
originalSource and originalId. This field
can be null and the message will still be considered valid.getOriginalUserId in interface CommerceMessagepublic void setOriginalUserId(java.lang.String pOriginalUserId)
public java.lang.String getType()
getType in interface CommerceMessagepublic java.lang.String getParentSessionId()
getParentSessionId in interface CommerceMessagepublic void setParentSessionId(java.lang.String pParentSessionId)
setParentSessionId in interface CommerceMessagepublic java.lang.String getSessionId()
getSessionId in interface CommerceMessagepublic void setSessionId(java.lang.String pSessionId)
setSessionId in interface CommerceMessagepublic void setSiteId(java.lang.String pSiteId)
pSite - site id to setpublic java.lang.String getSiteId()
protected java.lang.String appendBaseToString(java.lang.StringBuffer pBuf)
pBuf passed. This may be used by sub-classes
of this class to append the contents of this base class to the sub-class's
String form.