|
|||||||||||
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 String |
ACTION_ATTR
|
static String |
ACTION_ATTR_PREFIXED
|
static String |
ADD_ACTION
|
static String |
ADDCHANGE_ACTION
|
static String |
CHANGE_ACTION
|
static String |
CHANGED_ATTR
|
static String |
DELETE_ACTION
|
protected Log |
logger
Logger used by the connector. |
static String |
REPLACE_ACTION
|
Constructor Summary | |
---|---|
AbstractMxConnMode(MxConnConfiguration cfg,
Log log)
Constructs an AbstractMxConnMode . |
Method Summary | |
---|---|
protected MxConnConfiguration |
getCfg()
Returns the connector configuration object. |
protected String |
post(TemplateLoader tlp,
List<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(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 String CHANGED_ATTR
public static final String ACTION_ATTR
public static final String ACTION_ATTR_PREFIXED
public static final String ADD_ACTION
public static final String CHANGE_ACTION
public static final String DELETE_ACTION
public static final String ADDCHANGE_ACTION
public static final String REPLACE_ACTION
protected Log logger
Constructor Detail |
---|
public AbstractMxConnMode(MxConnConfiguration cfg, Log log)
AbstractMxConnMode
.
cfg
- the connector configuration objectlog
- logger of the connectorMethod Detail |
---|
protected final MxConnConfiguration getCfg()
protected final String post(TemplateLoader tlp, List<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(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 |