|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.connector.maximo.core.AbstractMxConnMode
public abstract class AbstractMxConnMode
This class provides a base implementation to minimize the effort required to implement a specific connector's mode.
HttpClient,
MxConnConfiguration| Field Summary | |
|---|---|
static java.lang.String |
ACTION_ATTR
|
static java.lang.String |
ACTION_ATTR_PREFIXED
|
static java.lang.String |
ADD_ACTION
|
static java.lang.String |
ADDCHANGE_ACTION
|
static java.lang.String |
CHANGE_ACTION
|
static java.lang.String |
CHANGED_ATTR
|
static java.lang.String |
DELETE_ACTION
|
protected Log |
logger
Logger used by the connector. |
static java.lang.String |
REPLACE_ACTION
|
| Constructor Summary | |
|---|---|
AbstractMxConnMode(MxConnConfiguration cfg,
Log log)
Constructs an AbstractMxConnMode. |
|
| Method Summary | |
|---|---|
protected MxConnConfiguration |
getCfg()
Returns the connector configuration object. |
protected java.lang.String |
post(TemplateLoader tlp,
java.util.List<java.lang.String> enterpriseServiceUrlList)
Posts the message extracted from the specified template to the given Maximo Enterprise Service. |
protected void |
setCreation(long creation)
Defines the creation date/time to be set before posting a message. |
protected void |
setMessageId(java.lang.String messageId)
Defines the message ID to be set before posting a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CHANGED_ATTR
public static final java.lang.String ACTION_ATTR
public static final java.lang.String ACTION_ATTR_PREFIXED
public static final java.lang.String ADD_ACTION
public static final java.lang.String CHANGE_ACTION
public static final java.lang.String DELETE_ACTION
public static final java.lang.String ADDCHANGE_ACTION
public static final java.lang.String REPLACE_ACTION
protected Log logger
| Constructor Detail |
|---|
public AbstractMxConnMode(MxConnConfiguration cfg,
Log log)
AbstractMxConnMode.
cfg - the connector configuration objectlog - logger of the connector| Method Detail |
|---|
protected final MxConnConfiguration getCfg()
protected final java.lang.String post(TemplateLoader tlp,
java.util.List<java.lang.String> enterpriseServiceUrlList)
throws MxConnectorException
tlp - template from which the message will be extracted and postedenterpriseServiceUrlList - list of Maximo enterprise service URLs that will handle the
message
MxConnectorException - if any sort of communication problem occurssetMessageId(String)protected final void setCreation(long creation)
current
date/time is used.
creation - creation date/time to be set before posting a message,
expressed as millisecondspost(TemplateLoader, List)protected final void setMessageId(java.lang.String messageId)
current date/time
expressed as milliseconds is used.
Note: Not used
messageId - message ID to be set before posting the messagepost(TemplateLoader, List)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||